BatteryStateNotifier: Update PendingIntent flag
Fixes: 175192995 Test: TH Change-Id: I710db9695f36aaafd16fa00c929f4548e85d1304
This commit is contained in:
@@ -56,7 +56,8 @@ class BatteryStateNotifier @Inject constructor(
|
||||
|
||||
val intent = Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse(context.getString(R.string.config_batteryStateUnknownUrl)))
|
||||
val pi = PendingIntent.getActivity(context, 0, intent, 0)
|
||||
val pi = PendingIntent.getActivity(context, 0, intent,
|
||||
PendingIntent.FLAG_IMMUTABLE)
|
||||
|
||||
val builder = Notification.Builder(context, channel.id)
|
||||
.setAutoCancel(false)
|
||||
@@ -87,4 +88,4 @@ class BatteryStateNotifier @Inject constructor(
|
||||
|
||||
private const val TAG = "BatteryStateNotifier"
|
||||
private const val ID = 666
|
||||
private const val DELAY_MILLIS: Long = 4 * 60 * 60 * 1000
|
||||
private const val DELAY_MILLIS: Long = 4 * 60 * 60 * 1000
|
||||
|
||||
Reference in New Issue
Block a user