am 4af0cfad: Merge "Verify that onPause() calls its superclass." into gingerbread
Merge commit '4af0cfad5305c8827c6235ca86e7db63b534ad68' into gingerbread-plus-aosp * commit '4af0cfad5305c8827c6235ca86e7db63b534ad68': Verify that onPause() calls its superclass.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user