List of usage examples for android.view View getDrawingTime
public long getDrawingTime()
Return the time at which the drawing of the view hierarchy started.
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; }