Notification sound per email address

This commit is contained in:
M66B
2019-03-07 12:29:03 +00:00
parent 6d81aed83a
commit 9786067060
8 changed files with 131 additions and 81 deletions

View File

@@ -19,7 +19,6 @@ package eu.faircode.email;
Copyright 2018-2019 by Marcel Bokhorst (M66B)
*/
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
@@ -120,8 +119,8 @@ public class ServiceSend extends LifecycleService {
.setContentTitle(getString(R.string.title_notification_sending))
.setAutoCancel(false)
.setShowWhen(false)
.setPriority(Notification.PRIORITY_MIN)
.setCategory(Notification.CATEGORY_STATUS)
.setPriority(NotificationCompat.PRIORITY_MIN)
.setCategory(NotificationCompat.CATEGORY_STATUS)
.setVisibility(NotificationCompat.VISIBILITY_SECRET);
if (lastUnsent > 0)