fix more instances of PendingIntent
This commit is contained in:
parent
1fd8670acb
commit
2dd11d074f
|
@ -163,7 +163,7 @@ public class FreezeService extends Service {
|
||||||
notification.actions = new Notification.Action[] {
|
notification.actions = new Notification.Action[] {
|
||||||
new Notification.Action.Builder(
|
new Notification.Action.Builder(
|
||||||
null, getString(R.string.service_auto_freeze_now),
|
null, getString(R.string.service_auto_freeze_now),
|
||||||
PendingIntent.getActivity(this, 0, intentFreeze, 0)
|
PendingIntent.getActivity(this, 0, intentFreeze, PendingIntent.FLAG_IMMUTABLE)
|
||||||
).build()
|
).build()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,7 @@ public class Utility {
|
||||||
.build();
|
.build();
|
||||||
Intent addIntent = shortcutManager.createShortcutResultIntent(info);
|
Intent addIntent = shortcutManager.createShortcutResultIntent(info);
|
||||||
shortcutManager.requestPinShortcut(info,
|
shortcutManager.requestPinShortcut(info,
|
||||||
PendingIntent.getBroadcast(context, 0, addIntent, 0).getIntentSender());
|
PendingIntent.getBroadcast(context, 0, addIntent, PendingIntent.FLAG_IMMUTABLE).getIntentSender());
|
||||||
} else {
|
} else {
|
||||||
// TODO: Maybe implement this for launchers without pin shortcut support?
|
// TODO: Maybe implement this for launchers without pin shortcut support?
|
||||||
// TODO: Should be the same with the fallback for Android < O
|
// TODO: Should be the same with the fallback for Android < O
|
||||||
|
|
Loading…
Reference in New Issue