diff options
-rw-r--r-- | core/java/android/app/Activity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index bf660ea..425b284 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -4281,7 +4281,14 @@ public class Activity extends ContextThemeWrapper final void performPause() { mFragments.dispatchPause(); + 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() { |