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

Commit 2f663878 authored by Amy Gu's avatar Amy Gu Committed by Automerger Merge Worker
Browse files

Merge "Update docs to reflect that toast should take activity context, not...

Merge "Update docs to reflect that toast should take activity context, not application context." am: 9ed3c880 am: 0da89ddc am: 66710c79

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2597393



Change-Id: I63f1d98e642fca723702951098bfc306069e092b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ffdf5a89 66710c79
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -155,8 +155,7 @@ public class Toast {
     * Construct an empty Toast object.  You must call {@link #setView} before you
     * can call {@link #show}.
     *
     * @param context  The context to use.  Usually your {@link android.app.Application}
     *                 or {@link android.app.Activity} object.
     * @param context  The context to use.  Usually your {@link android.app.Activity} object.
     */
    public Toast(Context context) {
        this(context, null);
@@ -482,8 +481,7 @@ public class Toast {
    /**
     * Make a standard toast that just contains text.
     *
     * @param context  The context to use.  Usually your {@link android.app.Application}
     *                 or {@link android.app.Activity} object.
     * @param context  The context to use.  Usually your {@link android.app.Activity} object.
     * @param text     The text to show.  Can be formatted text.
     * @param duration How long to display the message.  Either {@link #LENGTH_SHORT} or
     *                 {@link #LENGTH_LONG}
@@ -539,8 +537,7 @@ public class Toast {
    /**
     * Make a standard toast that just contains text from a resource.
     *
     * @param context  The context to use.  Usually your {@link android.app.Application}
     *                 or {@link android.app.Activity} object.
     * @param context  The context to use.  Usually your {@link android.app.Activity} object.
     * @param resId    The resource id of the string resource to use.  Can be formatted text.
     * @param duration How long to display the message.  Either {@link #LENGTH_SHORT} or
     *                 {@link #LENGTH_LONG}