Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b1a17a4 authored by Azhara Assanova's avatar Azhara Assanova
Browse files

Clarify documentation of getCaller, getIntent, and getInitialCaller

Bug: 341483597
Test: N/A
Flag: EXEMPT bugfix
Change-Id: I9ad75f9c674147ef75dcf5fc3c6e30d24f23bdc3
parent 7054862e
Loading
Loading
Loading
Loading
+15 −5
Original line number Original line Diff line number Diff line
@@ -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;
@@ -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
@@ -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