fixup! FMRadio: Use FLAG_IMMUTABLE for notifications
Change-Id: I44a439441d4cb099abdb78de7497b5d92c8e3d2b
diff --git a/src/com/android/fmradio/FmService.java b/src/com/android/fmradio/FmService.java
index 5044463..bd62fbe 100644
--- a/src/com/android/fmradio/FmService.java
+++ b/src/com/android/fmradio/FmService.java
@@ -1824,7 +1824,8 @@
aIntent.addCategory(Intent.CATEGORY_LAUNCHER);
aIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
aIntent.setClassName(getPackageName(), mTargetClassName);
- PendingIntent pAIntent = PendingIntent.getActivity(mContext, 0, aIntent, PendingIntent.FLAG_IMMUTABLE);
+ PendingIntent pAIntent = PendingIntent.getActivity(
+ mContext, 0, aIntent, PendingIntent.FLAG_IMMUTABLE);
NotificationManager notificationManager = getSystemService(NotificationManager.class);
if (notificationManager.getNotificationChannel(CHANNEL_ID) == null) {
@@ -1843,7 +1844,8 @@
Intent intent = new Intent(FM_SEEK_PREVIOUS);
intent.setClass(mContext, FmService.class);
- PendingIntent pIntent = PendingIntent.getService(mContext, 0, intent, PendingIntent.FLAG_IMMUTABLE);
+ PendingIntent pIntent = PendingIntent.getService(
+ mContext, 0, intent, PendingIntent.FLAG_IMMUTABLE);
mNotificationBuilder.addAction(R.drawable.btn_fm_prevstation,
getString(R.string.notif_previous), pIntent);
intent = new Intent(FM_TURN_OFF);