Require a more specific intent
Bug: 147606347 Fixes: 161150380 Test: run poc, device didn't reboot Change-Id: I8f721ca659d58271880a7adbf386b270b331e55b Merged-In: I8f721ca659d58271880a7adbf386b270b331e55b (cherry picked from commita9afc32ddc) (cherry picked from commitd16e86f466)
This commit is contained in:
@@ -138,7 +138,8 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
|||||||
protected void addPrimaryAction(ListBuilder builder) {
|
protected void addPrimaryAction(ListBuilder builder) {
|
||||||
// Add simple action because API requires it; Keyguard handles presenting
|
// Add simple action because API requires it; Keyguard handles presenting
|
||||||
// its own slices so this action + icon are actually never used.
|
// 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);
|
Icon icon = Icon.createWithResource(getContext(), R.drawable.ic_access_alarms_big);
|
||||||
SliceAction action = new SliceAction(pi, icon, mLastText);
|
SliceAction action = new SliceAction(pi, icon, mLastText);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user