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

Commit cca6d05f authored by Mark Renouf's avatar Mark Renouf
Browse files

Update javadoc for startActivityForResult(Intent, int, Bundle)

singleTask no longer adds FLAG_ACTIVITY_NEW_TASK by default since Android 5+.
Changed to refer to the specific cause of the problem described.

Test: built for shamu-eng

Change-Id: I7a6601520370a69533a989f1c8eea0e659239777
parent 6ce1e98c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4275,8 +4275,8 @@ public class Activity extends ContextThemeWrapper
     * that are defined to return a result.  In other protocols (such as
     * {@link Intent#ACTION_MAIN} or {@link Intent#ACTION_VIEW}), you may
     * not get the result when you expect.  For example, if the activity you
     * are launching uses the singleTask launch mode, it will not run in your
     * task and thus you will immediately receive a cancel result.
     * are launching uses {@link Intent#FLAG_ACTIVITY_NEW_TASK}, it will not
     * run in your task and thus you will immediately receive a cancel result.
     *
     * <p>As a special case, if you call startActivityForResult() with a requestCode
     * >= 0 during the initial onCreate(Bundle savedInstanceState)/onResume() of your