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

Commit 4af0cfad authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Verify that onPause() calls its superclass." into gingerbread

parents e2978c8d e794e9f9
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -3898,7 +3898,14 @@ public class Activity extends ContextThemeWrapper
    }
    }


    final void performPause() {
    final void performPause() {
        mCalled = false;
        onPause();
        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() {
    final void performUserLeaving() {