diff options
Diffstat (limited to 'TestMediaApp/src/com/android/car/media/testmediaapp/TmaForegroundService.java')
-rw-r--r-- | TestMediaApp/src/com/android/car/media/testmediaapp/TmaForegroundService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TestMediaApp/src/com/android/car/media/testmediaapp/TmaForegroundService.java b/TestMediaApp/src/com/android/car/media/testmediaapp/TmaForegroundService.java index 6241455..594cbab 100644 --- a/TestMediaApp/src/com/android/car/media/testmediaapp/TmaForegroundService.java +++ b/TestMediaApp/src/com/android/car/media/testmediaapp/TmaForegroundService.java @@ -58,7 +58,7 @@ public class TmaForegroundService extends Service { createNotificationChannel(); Intent notificationIntent = new Intent(this, TmaPrefsActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, - 0, notificationIntent, 0); + 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE); Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID) .setContentTitle("Foreground Service") .setSmallIcon(R.drawable.ic_app_icon) |