From 4fbcec13a0947ea73d3dc474558b6152802ac6bf Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Thu, 18 Jul 2019 21:37:36 +0000 Subject: docs: Clarified when onRestoreInstanceState() executes This method executes only after onDestroy() is called. Change-Id: I4880cc98ea08945f30b16baa7ae400a5bbe3e439 Test: make ds-docs Bug: 136241777 --- core/java/android/app/Activity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index dc52c52cca1f..f5b0b592e6a7 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -1547,7 +1547,9 @@ public class Activity extends ContextThemeWrapper * had previously been frozen by {@link #onSaveInstanceState}. * *

This method is called between {@link #onStart} and - * {@link #onPostCreate}. + * {@link #onPostCreate}. This method is called only when recreating + * an activity; the method isn't invoked if {@link #onStart} is called for + * any other reason.

* * @param savedInstanceState the data most recently supplied in {@link #onSaveInstanceState}. * -- cgit v1.2.3-59-g8ed1b