Use individual notification channels for background connection and call status.

This commit is contained in:
Cody Henthorne
2022-02-15 16:36:29 -05:00
committed by Greyson Parrelli
parent a1bcbe9c86
commit 9389ee17b6
4 changed files with 19 additions and 9 deletions

View File

@@ -264,7 +264,7 @@ public class IncomingMessageObserver {
public int onStartCommand(Intent intent, int flags, int startId) {
super.onStartCommand(intent, flags, startId);
NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), NotificationChannels.OTHER);
NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext(), NotificationChannels.BACKGROUND);
builder.setContentTitle(getApplicationContext().getString(R.string.MessageRetrievalService_signal));
builder.setContentText(getApplicationContext().getString(R.string.MessageRetrievalService_background_connection_enabled));
builder.setPriority(NotificationCompat.PRIORITY_MIN);