Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fe953e7 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Adjust reportFullyDrawn documentation

Since Q, this API affects how the application is optimized.

Bug: 117575269
Test: manual
Change-Id: I0a448b8a59df4544775739505e50e401b43ba965
parent c669e81a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -2563,9 +2563,12 @@ public class Activity extends ContextThemeWrapper
    }

    /**
     * Report to the system that your app is now fully drawn, purely for diagnostic
     * purposes (calling it does not impact the visible behavior of the activity).
     * This is only used to help instrument application launch times, so that the
     * Report to the system that your app is now fully drawn, for diagnostic and
     * optimization purposes.  The system may adjust optimizations to prioritize
     * work that happens before reportFullyDrawn is called, to improve app startup.
     * Misrepresenting the startup window by calling reportFullyDrawn too late or too
     * early may decrease application and startup performance.<p>
     * This is also used to help instrument application launch times, so that the
     * app can report when it is fully in a usable state; without this, the only thing
     * the system itself can determine is the point at which the activity's window
     * is <em>first</em> drawn and displayed.  To participate in app launch time