Merge "Verify that onPause() calls its superclass." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
4af0cfad53
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user