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

Commit eb68f652 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Comment more on component callback order for N+ OS"

parents 97e6198a 0308e6a2
Loading
Loading
Loading
Loading
+13 −3
Original line number Original line Diff line number Diff line
@@ -86,11 +86,21 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 {
    /**
    /**
     * Called when the application is starting, before any activity, service,
     * Called when the application is starting, before any activity, service,
     * or receiver objects (excluding content providers) have been created.
     * or receiver objects (excluding content providers) have been created.
     * Implementations should be as quick as possible (for example using
     *
     * <p>Implementations should be as quick as possible (for example using
     * lazy initialization of state) since the time spent in this function
     * lazy initialization of state) since the time spent in this function
     * directly impacts the performance of starting the first activity,
     * directly impacts the performance of starting the first activity,
     * service, or receiver in a process.
     * service, or receiver in a process.</p>
     * If you override this method, be sure to call super.onCreate().
     *
     * <p>If you override this method, be sure to call {@code super.onCreate()}.</p>
     *
     * <p class="note">Be aware that direct boot may also affect callback order on
     * Android {@link android.os.Build.VERSION_CODES#N} and later devices.
     * Until the user unlocks the device, only direct boot aware components are
     * allowed to run. You should consider that all direct boot unaware
     * components, including such {@link android.content.ContentProvider}, are
     * disabled until user unlock happens, especially when component callback
     * order matters.</p>
     */
     */
    @CallSuper
    @CallSuper
    public void onCreate() {
    public void onCreate() {