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:
Dianne Hackborn
2010-08-24 14:47:46 -07:00
committed by Android Git Automerger

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