mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 19:05:23 +01:00
Set foreground service behavior
This commit is contained in:
@@ -1461,6 +1461,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
// Build notification
|
||||
NotificationCompat.Builder builder =
|
||||
new NotificationCompat.Builder(this, "service")
|
||||
.setForegroundServiceBehavior(Notification.FOREGROUND_SERVICE_DEFAULT)
|
||||
.setSmallIcon(R.drawable.baseline_compare_arrows_white_24)
|
||||
.setContentIntent(piWhy)
|
||||
.setAutoCancel(false)
|
||||
|
||||
Reference in New Issue
Block a user