diff options
| -rw-r--r-- | core/java/android/view/View.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index cea3263f3c72..64e82639bf29 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -17306,15 +17306,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * item in a list view. * * @return Returns a Parcelable object containing the view's current dynamic - * state, or null if there is nothing interesting to save. The - * default implementation returns null. + * state, or null if there is nothing interesting to save. * @see #onRestoreInstanceState(android.os.Parcelable) * @see #saveHierarchyState(android.util.SparseArray) * @see #dispatchSaveInstanceState(android.util.SparseArray) * @see #setSaveEnabled(boolean) */ @CallSuper - protected Parcelable onSaveInstanceState() { + @Nullable protected Parcelable onSaveInstanceState() { mPrivateFlags |= PFLAG_SAVE_STATE_CALLED; if (mStartActivityRequestWho != null || isAutofilled() || mAccessibilityViewId > LAST_APP_ACCESSIBILITY_ID) { |