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

Commit 0527d912 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

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

Change-Id: Id8fa7e1c17ee3d42a19c82dc8cc1fec2de1757d1
Fixes: 79703568
Test: Existing test pass.
parent d6bb8e95
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5578,6 +5578,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);
    }