OSDN Git Service

Require a more specific intent
authorLucas Dupin <dupin@google.com>
Wed, 25 Mar 2020 17:46:44 +0000 (10:46 -0700)
committerAnis Assi <anisassi@google.com>
Fri, 7 Aug 2020 16:56:58 +0000 (09:56 -0700)
Bug: 147606347
Fixes: 161150380
Test: run poc, device didn't reboot
Change-Id: I8f721ca659d58271880a7adbf386b270b331e55b
Merged-In: I8f721ca659d58271880a7adbf386b270b331e55b
(cherry picked from commit a9afc32ddc013424e2d17a091ef3fdfbe18c0d76)
(cherry picked from commit d16e86f466c2fc18448b654cbe71089c7fede991)
(cherry picked from commit 6dbda27f98ccfdc97b41e8f3990b3a316bb928dd)

packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java

index fe8ea34..d34307b 100644 (file)
@@ -138,7 +138,8 @@ public class KeyguardSliceProvider extends SliceProvider implements
     protected void addPrimaryAction(ListBuilder builder) {
         // Add simple action because API requires it; Keyguard handles presenting
         // its own slices so this action + icon are actually never used.
-        PendingIntent pi = PendingIntent.getActivity(getContext(), 0, new Intent(), 0);
+        PendingIntent pi = PendingIntent.getActivity(getContext(), 0,
+            new Intent(getContext(), KeyguardSliceProvider.class), 0);
         Icon icon = Icon.createWithResource(getContext(), R.drawable.ic_access_alarms_big);
         SliceAction action = new SliceAction(pi, icon, mLastText);