Merge "Opt in recents PendingIntent for BAL" into main

This commit is contained in:
Achim Thesmann authored and Android (Google) Code Review committed 2023-11-15 22:27:27 +00:00
commit daca6d0747
1 file changed
+4 -1
@@ -178,9 +178,12 @@ public class SystemUiProxy implements ISystemUiProxy {
mContext = context;
mAsyncHandler = new Handler(UI_HELPER_EXECUTOR.getLooper(), this::handleMessageAsync);
final Intent baseIntent = new Intent().setPackage(mContext.getPackageName());
final ActivityOptions options = ActivityOptions.makeBasic()
.setPendingIntentCreatorBackgroundActivityStartMode(
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
mRecentsPendingIntent = PendingIntent.getActivity(mContext, 0, baseIntent,
PendingIntent.FLAG_MUTABLE | PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT
| Intent.FILL_IN_COMPONENT);
| Intent.FILL_IN_COMPONENT, options.toBundle());
}
@Override