Require a more specific intent

Fixes: 147606347
Test: run poc, device didn't reboot
Change-Id: I8f721ca659d58271880a7adbf386b270b331e55b
This commit is contained in:
Lucas Dupin
2020-03-25 10:46:44 -07:00
parent 8829c37c1d
commit a9afc32ddc

View File

@ -305,7 +305,8 @@ public class KeyguardSliceProvider extends SliceProvider implements
oldInstance.onDestroy();
}
mDatePattern = getContext().getString(R.string.system_ui_aod_date_pattern);
mPendingIntent = PendingIntent.getActivity(getContext(), 0, new Intent(), 0);
mPendingIntent = PendingIntent.getActivity(getContext(), 0,
new Intent(getContext(), KeyguardSliceProvider.class), 0);
mMediaManager.addCallback(this);
mStatusBarStateController.addCallback(this);
mNextAlarmController.addCallback(this);