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

Commit 718b71bd authored by Charles Munger's avatar Charles Munger Committed by android-build-merger
Browse files

Merge "Deprecate Looper.prepareMainLooper" am: b1f69203 am: 8292d735

am: d2db9aee

Change-Id: Id49e8ee1bcce156f6efe9da590eb1aac476f2726
parents 01c8aeae d2db9aee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34967,7 +34967,7 @@ package android.os {
    method @Nullable public static android.os.Looper myLooper();
    method @NonNull public static android.os.MessageQueue myQueue();
    method public static void prepare();
    method public static void prepareMainLooper();
    method @Deprecated public static void prepareMainLooper();
    method public void quit();
    method public void quitSafely();
    method public void setMessageLogging(@Nullable android.util.Printer);
+5 −3
Original line number Diff line number Diff line
@@ -112,10 +112,12 @@ public final class Looper {

    /**
     * Initialize the current thread as a looper, marking it as an
     * application's main looper. The main looper for your application
     * is created by the Android environment, so you should never need
     * to call this function yourself.  See also: {@link #prepare()}
     * application's main looper. See also: {@link #prepare()}
     *
     * @deprecated The main looper for your application is created by the Android environment,
     *   so you should never need to call this function yourself.
     */
    @Deprecated
    public static void prepareMainLooper() {
        prepare(false);
        synchronized (Looper.class) {