diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryStateNotifier.kt b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryStateNotifier.kt index 92e5b78f776a4..27e40e06fcf0f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryStateNotifier.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryStateNotifier.kt @@ -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 \ No newline at end of file +private const val DELAY_MILLIS: Long = 4 * 60 * 60 * 1000