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

Commit e794e9f9 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Verify that onPause() calls its superclass.

Change-Id: Ibf48992b4445bfc726ade307aad26f3e9577c5fb
parent 6d734693
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3898,7 +3898,14 @@ public class Activity extends ContextThemeWrapper
    }

    final void performPause() {
        mCalled = false;
        onPause();
        if (!mCalled && getApplicationInfo().targetSdkVersion
                >= android.os.Build.VERSION_CODES.GINGERBREAD) {
            throw new SuperNotCalledException(
                    "Activity " + mComponent.toShortString() +
                    " did not call through to super.onPause()");
        }
    }
    
    final void performUserLeaving() {