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

Commit 5ab2be09 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge "Adde back check to make sure Activity.recreate() is called on main...

Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev am: 5f8e42f7
am: a0f73258

Change-Id: Ib0e04145df03616a1b0109634d55ea6972a76b6d
parents 09a8e266 a0f73258
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5580,6 +5580,9 @@ public class Activity extends ContextThemeWrapper
        if (mParent != null) {
            throw new IllegalStateException("Can only be called on top-level activity");
        }
        if (Looper.myLooper() != mMainThread.getLooper()) {
            throw new IllegalStateException("Must be called from main thread");
        }
        mMainThread.scheduleRelaunchActivity(mToken);
    }