Loading core/java/android/app/Activity.java +15 −5 Original line number Original line Diff line number Diff line Loading @@ -1150,6 +1150,11 @@ public class Activity extends ContextThemeWrapper * * * <p>To keep the Intent instance for future use, call {@link #setIntent(Intent)}, and use * <p>To keep the Intent instance for future use, call {@link #setIntent(Intent)}, and use * this method to retrieve it. * this method to retrieve it. * * <p>Note that in {@link #onNewIntent}, this method will return the original Intent. You can * use {@link #setIntent(Intent)} to update it to the new Intent. * * @return {@link Intent} instance that started this activity, or that was kept for future use */ */ public Intent getIntent() { public Intent getIntent() { return mIntent; return mIntent; Loading @@ -1170,9 +1175,14 @@ public class Activity extends ContextThemeWrapper } } /** /** * Returns the ComponentCaller instance of the app that launched this activity with the intent * Returns the ComponentCaller instance of the app that started this activity. * from {@link #getIntent()}. To keep the value of the ComponentCaller instance for new intents, * * call {@link #setIntent(Intent, ComponentCaller)} instead of {@link #setIntent(Intent)}. * <p>To keep the ComponentCaller instance for future use, call * {@link #setIntent(Intent, ComponentCaller)}, and use this method to retrieve it. * * <p>Note that in {@link #onNewIntent}, this method will return the original ComponentCaller. * You can use {@link #setIntent(Intent, ComponentCaller)} to update it to the new * ComponentCaller. * * * @return {@link ComponentCaller} instance corresponding to the intent from * @return {@link ComponentCaller} instance corresponding to the intent from * {@link #getIntent()}, or {@code null} if the activity was not launched with that * {@link #getIntent()}, or {@code null} if the activity was not launched with that Loading Loading @@ -7156,8 +7166,8 @@ public class Activity extends ContextThemeWrapper /** /** * Returns the ComponentCaller instance of the app that initially launched this activity. * Returns the ComponentCaller instance of the app that initially launched this activity. * * * <p>Note that calls to {@link #onNewIntent} have no effect on the returned value of this * <p>Note that calls to {@link #onNewIntent} and {@link #setIntent} have no effect on the * method. * returned value of this method. * * * @return {@link ComponentCaller} instance * @return {@link ComponentCaller} instance * @see ComponentCaller * @see ComponentCaller Loading Loading
core/java/android/app/Activity.java +15 −5 Original line number Original line Diff line number Diff line Loading @@ -1150,6 +1150,11 @@ public class Activity extends ContextThemeWrapper * * * <p>To keep the Intent instance for future use, call {@link #setIntent(Intent)}, and use * <p>To keep the Intent instance for future use, call {@link #setIntent(Intent)}, and use * this method to retrieve it. * this method to retrieve it. * * <p>Note that in {@link #onNewIntent}, this method will return the original Intent. You can * use {@link #setIntent(Intent)} to update it to the new Intent. * * @return {@link Intent} instance that started this activity, or that was kept for future use */ */ public Intent getIntent() { public Intent getIntent() { return mIntent; return mIntent; Loading @@ -1170,9 +1175,14 @@ public class Activity extends ContextThemeWrapper } } /** /** * Returns the ComponentCaller instance of the app that launched this activity with the intent * Returns the ComponentCaller instance of the app that started this activity. * from {@link #getIntent()}. To keep the value of the ComponentCaller instance for new intents, * * call {@link #setIntent(Intent, ComponentCaller)} instead of {@link #setIntent(Intent)}. * <p>To keep the ComponentCaller instance for future use, call * {@link #setIntent(Intent, ComponentCaller)}, and use this method to retrieve it. * * <p>Note that in {@link #onNewIntent}, this method will return the original ComponentCaller. * You can use {@link #setIntent(Intent, ComponentCaller)} to update it to the new * ComponentCaller. * * * @return {@link ComponentCaller} instance corresponding to the intent from * @return {@link ComponentCaller} instance corresponding to the intent from * {@link #getIntent()}, or {@code null} if the activity was not launched with that * {@link #getIntent()}, or {@code null} if the activity was not launched with that Loading Loading @@ -7156,8 +7166,8 @@ public class Activity extends ContextThemeWrapper /** /** * Returns the ComponentCaller instance of the app that initially launched this activity. * Returns the ComponentCaller instance of the app that initially launched this activity. * * * <p>Note that calls to {@link #onNewIntent} have no effect on the returned value of this * <p>Note that calls to {@link #onNewIntent} and {@link #setIntent} have no effect on the * method. * returned value of this method. * * * @return {@link ComponentCaller} instance * @return {@link ComponentCaller} instance * @see ComponentCaller * @see ComponentCaller Loading