diff options
Diffstat (limited to 'core/java/android/app/Activity.java')
| -rw-r--r-- | core/java/android/app/Activity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 8d5b96bdd051..6d7011ab2483 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -1349,7 +1349,12 @@ public class Activity extends ContextThemeWrapper * to give the activity a hint that its state is no longer saved -- it will generally * be called after {@link #onSaveInstanceState} and prior to the activity being * resumed/started again. + * + * @deprecated starting with {@link android.os.Build.VERSION_CODES#P} onSaveInstanceState is + * called after {@link #onStop}, so this hint isn't accurate anymore: you should consider your + * state not saved in between {@code onStart} and {@code onStop} callbacks inclusively. */ + @Deprecated public void onStateNotSaved() { } |
