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:
parent
bd7346191f
commit
092c0f4cc9
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue