Example usage for android.view View getDrawingTime

List of usage examples for android.view View getDrawingTime

Introduction

In this page you can find the example usage for android.view View getDrawingTime.

Prototype

public long getDrawingTime() 

Source Link

Document

Return the time at which the drawing of the view hierarchy started.

Usage

From source file:com.facebook.litho.LayoutState.java

private static boolean canCollectDisplayListsSync(Activity activity) {
    // If we have no window or the hierarchy has never been drawn before we cannot guarantee that
    // a valid GL context exists. In this case just bail.
    final Window window = activity.getWindow();
    if (window == null) {
        return false;
    }/*www .j a v a2s .  co m*/

    final View decorView = window.getDecorView();
    if (decorView == null || decorView.getDrawingTime() == 0) {
        return false;
    }

    return true;
}