mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +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)
|
||||
.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))
|
||||
|
|
Loading…
Reference in a new issue