From 092c0f4cc93f37a73c56211580854552a0d43b17 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 21 Mar 2015 22:23:09 +0100 Subject: [PATCH] Set notification as ongoing. --- .../com/nutomic/syncthingandroid/syncthing/SyncthingService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java index 4689a61a..251f4a98 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java @@ -198,6 +198,7 @@ public class SyncthingService extends Service { Notification n = new NotificationCompat.Builder(this) .setContentTitle(getString(R.string.syncthing_active)) .setSmallIcon(R.drawable.ic_launcher) + .setOngoing(true) .setPriority(NotificationCompat.PRIORITY_MIN) .setContentIntent(PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), 0))