1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 08:11:17 +00:00

Set notification as ongoing.

This commit is contained in:
Felix Ableitner 2015-03-21 22:23:09 +01:00
parent bd7346191f
commit 092c0f4cc9

View file

@ -198,6 +198,7 @@ public class SyncthingService extends Service {
Notification n = new NotificationCompat.Builder(this) Notification n = new NotificationCompat.Builder(this)
.setContentTitle(getString(R.string.syncthing_active)) .setContentTitle(getString(R.string.syncthing_active))
.setSmallIcon(R.drawable.ic_launcher) .setSmallIcon(R.drawable.ic_launcher)
.setOngoing(true)
.setPriority(NotificationCompat.PRIORITY_MIN) .setPriority(NotificationCompat.PRIORITY_MIN)
.setContentIntent(PendingIntent.getActivity(this, 0, .setContentIntent(PendingIntent.getActivity(this, 0,
new Intent(this, MainActivity.class), 0)) new Intent(this, MainActivity.class), 0))