Loading api/current.xml +11 −0 Original line number Diff line number Diff line Loading @@ -19677,6 +19677,17 @@ visibility="public" > </method> <method name="isChangingConfigurations" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="isChild" return="boolean" abstract="false" core/java/android/app/Activity.java +15 −0 Original line number Diff line number Diff line Loading @@ -637,6 +637,8 @@ public class Activity extends ContextThemeWrapper private boolean mStopped; boolean mFinished; boolean mStartedActivity; /** true if the activity is being destroyed in order to recreate it with a new configuration */ /*package*/ boolean mChangingConfigurations = false; /*package*/ int mConfigChangeFlags; /*package*/ Configuration mCurrentConfig; private SearchManager mSearchManager; Loading Loading @@ -3401,6 +3403,19 @@ public class Activity extends ContextThemeWrapper return mFinished; } /** * Check to see whether this activity is in the process of being destroyed in order to be * recreated with a new configuration. This is often used in * {@link #onStop} to determine whether the state needs to be cleaned up or will be passed * on to the next instance of the activity via {@link #onRetainNonConfigurationInstance()}. * * @return If the activity is being torn down in order to be recreated with a new configuration, * returns true; else returns false. */ public boolean isChangingConfigurations() { return mChangingConfigurations; } /** * Call this when your activity is done and should be closed. The * ActivityResult is propagated back to whoever launched you via Loading core/java/android/app/ActivityThread.java +3 −0 Original line number Diff line number Diff line Loading @@ -3575,6 +3575,9 @@ public final class ActivityThread { if (finishing) { r.activity.mFinished = true; } if (getNonConfigInstance) { r.activity.mChangingConfigurations = true; } if (!r.paused) { try { r.activity.mCalled = false; Loading Loading
api/current.xml +11 −0 Original line number Diff line number Diff line Loading @@ -19677,6 +19677,17 @@ visibility="public" > </method> <method name="isChangingConfigurations" return="boolean" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > </method> <method name="isChild" return="boolean" abstract="false"
core/java/android/app/Activity.java +15 −0 Original line number Diff line number Diff line Loading @@ -637,6 +637,8 @@ public class Activity extends ContextThemeWrapper private boolean mStopped; boolean mFinished; boolean mStartedActivity; /** true if the activity is being destroyed in order to recreate it with a new configuration */ /*package*/ boolean mChangingConfigurations = false; /*package*/ int mConfigChangeFlags; /*package*/ Configuration mCurrentConfig; private SearchManager mSearchManager; Loading Loading @@ -3401,6 +3403,19 @@ public class Activity extends ContextThemeWrapper return mFinished; } /** * Check to see whether this activity is in the process of being destroyed in order to be * recreated with a new configuration. This is often used in * {@link #onStop} to determine whether the state needs to be cleaned up or will be passed * on to the next instance of the activity via {@link #onRetainNonConfigurationInstance()}. * * @return If the activity is being torn down in order to be recreated with a new configuration, * returns true; else returns false. */ public boolean isChangingConfigurations() { return mChangingConfigurations; } /** * Call this when your activity is done and should be closed. The * ActivityResult is propagated back to whoever launched you via Loading
core/java/android/app/ActivityThread.java +3 −0 Original line number Diff line number Diff line Loading @@ -3575,6 +3575,9 @@ public final class ActivityThread { if (finishing) { r.activity.mFinished = true; } if (getNonConfigInstance) { r.activity.mChangingConfigurations = true; } if (!r.paused) { try { r.activity.mCalled = false; Loading