mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Set foreground service behavior
This commit is contained in:
@@ -144,6 +144,7 @@ public class ServiceExternal extends Service {
|
||||
private Notification getNotification() {
|
||||
NotificationCompat.Builder builder =
|
||||
new NotificationCompat.Builder(this, "service")
|
||||
.setForegroundServiceBehavior(Notification.FOREGROUND_SERVICE_DEFERRED)
|
||||
.setSmallIcon(R.drawable.baseline_compare_arrows_white_24)
|
||||
.setContentTitle(getString(R.string.tile_synchronize))
|
||||
.setAutoCancel(false)
|
||||
|
||||
Reference in New Issue
Block a user