FM: Reducing notification priority to low importance
Reducing notification priority to low importance.
CRs-fixed: 2070489
Change-Id: Id1fe7b7d353253283fcfb17c0e4e1b2e1a539680
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index 8d6ace1..41022be 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -1712,7 +1712,7 @@
NotificationChannel notificationChannel =
new NotificationChannel(FMRADIO_NOTIFICATION_CHANNEL,
context.getString(R.string.app_name),
- NotificationManager.IMPORTANCE_HIGH);
+ NotificationManager.IMPORTANCE_LOW);
notificationManager.createNotificationChannel(notificationChannel);
@@ -1724,7 +1724,7 @@
.setOngoing(true)
.build();
- notificationManager.notify(FMRADIOSERVICE_STATUS, notification);
+ startForeground(FMRADIOSERVICE_STATUS, notification);
mFMOn = true;
}