diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2023-06-22 11:17:29 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2023-06-26 10:15:14 -0700 |
commit | b02dafc1d456ee3665c53f32a51f7f84b4008415 (patch) | |
tree | c5fc9f2974c4eef1584649e81f9530f7034afe75 /src/com/android/launcher3/popup | |
parent | a4d1e9aa993d834483a4fe75e18ec9f8ce4a6348 (diff) | |
download | Launcher3-b02dafc1d456ee3665c53f32a51f7f84b4008415.tar.gz |
Removing explicit target SDK for launcher
> It will automatically target the latest SDK it was compiled with
Bug: 284349887
Test: Presubmit and manual
Flag: N/A
Change-Id: I32629b0dd710c3c04d8f70f988b7279e7cae6731
Diffstat (limited to 'src/com/android/launcher3/popup')
-rw-r--r-- | src/com/android/launcher3/popup/RemoteActionShortcut.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher3/popup/RemoteActionShortcut.java b/src/com/android/launcher3/popup/RemoteActionShortcut.java index 7c9ab87ebc..eab096974f 100644 --- a/src/com/android/launcher3/popup/RemoteActionShortcut.java +++ b/src/com/android/launcher3/popup/RemoteActionShortcut.java @@ -16,10 +16,12 @@ package com.android.launcher3.popup; +import static com.android.launcher3.Utilities.allowBGLaunch; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import android.annotation.TargetApi; +import android.app.ActivityOptions; import android.app.PendingIntent; import android.app.RemoteAction; import android.content.Context; @@ -84,6 +86,8 @@ public class RemoteActionShortcut extends SystemShortcut<BaseDraggingActivity> { final WeakReference<BaseDraggingActivity> weakTarget = new WeakReference<>(mTarget); final String actionIdentity = mAction.getTitle() + ", " + mItemInfo.getTargetComponent().getPackageName(); + + ActivityOptions options = allowBGLaunch(ActivityOptions.makeBasic()); try { if (DEBUG) Log.d(TAG, "Sending action: " + actionIdentity); mAction.getActionIntent().send( @@ -103,7 +107,9 @@ public class RemoteActionShortcut extends SystemShortcut<BaseDraggingActivity> { } } }, - MAIN_EXECUTOR.getHandler()); + MAIN_EXECUTOR.getHandler(), + null, + options.toBundle()); } catch (PendingIntent.CanceledException e) { Log.e(TAG, "Remote action canceled: " + actionIdentity, e); Toast.makeText(mTarget, mTarget.getString( |