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

Commit 995bb7e3 authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Only allow NEW_TASK flag when adjusting pending intents" into qt-dev...

Merge "Only allow NEW_TASK flag when adjusting pending intents" into qt-dev am: a082fd92 am: a0237b2e am: 7d8fd7a9 am: b4ce1ebb

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



Change-Id: Ieb48d0ac0790584e1df573c4d899f8f355394c46
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents bee0f8e5 b4ce1ebb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import static android.Manifest.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIO
import static android.Manifest.permission.START_TASKS_FROM_RECENTS;
import static android.app.WindowConfiguration.ACTIVITY_TYPE_UNDEFINED;
import static android.app.WindowConfiguration.WINDOWING_MODE_UNDEFINED;
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static android.content.Intent.FLAG_RECEIVER_FOREGROUND;
import static android.view.Display.INVALID_DISPLAY;

import android.annotation.IntDef;
@@ -1525,7 +1527,9 @@ public class ActivityOptions extends ComponentOptions {
     * @hide
     */
    public int getPendingIntentLaunchFlags() {
        return mPendingIntentLaunchFlags;
        // b/243794108: Ignore all flags except the new task flag, to be reconsidered in b/254490217
        return mPendingIntentLaunchFlags &
                (FLAG_ACTIVITY_NEW_TASK | FLAG_RECEIVER_FOREGROUND);
    }

    /**