Merge "BatteryStateNotifier: Update PendingIntent flag"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fb39e67a44
@@ -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