diff options
| author | 2018-03-12 10:06:23 -0700 | |
|---|---|---|
| committer | 2018-03-12 10:06:23 -0700 | |
| commit | 476edc8148a4b13b81062b51e37de7f6cabb1286 (patch) | |
| tree | ec132ecabdcc340d77c692013f572de36d669432 | |
| parent | d50aa525960b16cd3df03ed7733eb3156b22f077 (diff) | |
Update documentation for Activity#onCreate.
The current description incorrectly states #onDestroy will be called
immediately when invoking #finish during #onCreate.
Change-Id: I816a54457d7aca0b40feac9a5656d94f7e712c76
Fixes: 69144863
Test: comment update.
| -rw-r--r-- | core/java/android/app/Activity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 99c5d2b9a927..568778094162 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -995,9 +995,9 @@ public class Activity extends ContextThemeWrapper * cursors for data being displayed, etc. * * <p>You can call {@link #finish} from within this function, in - * which case onDestroy() will be immediately called without any of the rest - * of the activity lifecycle ({@link #onStart}, {@link #onResume}, - * {@link #onPause}, etc) executing. + * which case onDestroy() will be immediately called after {@link #onCreate} without any of the + * rest of the activity lifecycle ({@link #onStart}, {@link #onResume}, {@link #onPause}, etc) + * executing. * * <p><em>Derived classes must call through to the super class's * implementation of this method. If they do not, an exception will be |