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

Commit 2ece10db authored by Todd Kennedy's avatar Todd Kennedy Committed by Gerrit Code Review
Browse files

Merge "Add NoDisplay test when resuming Activity"

parents 7369cc61 ee8c9c63
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -6068,6 +6068,17 @@ public class Activity extends ContextThemeWrapper
                " did not call through to super.onResume()");
                " did not call through to super.onResume()");
        }
        }


        // invisible activities must be finished before onResume() completes
        if (!mVisibleFromClient && !mFinished) {
            Log.w(TAG, "An activity without a UI must call finish() before onResume() completes");
            if (getApplicationInfo().targetSdkVersion
                    > android.os.Build.VERSION_CODES.LOLLIPOP_MR1) {
                throw new IllegalStateException(
                        "Activity " + mComponent.toShortString() +
                        " did not call finish() prior to onResume() completing");
            }
        }

        // Now really resume, and install the current status bar and menu.
        // Now really resume, and install the current status bar and menu.
        mCalled = false;
        mCalled = false;