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

This commit is contained in:
Dianne Hackborn
2010-08-24 14:44:42 -07:00
committed by Android (Google) Code Review

View File

@@ -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() {