mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-25 22:01:16 +00:00
Use minimum priority for ongoing notification.
This commit is contained in:
parent
dfc589d714
commit
7b51d8f355
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ public class SyncthingService extends Service {
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setSmallIcon(R.drawable.ic_launcher)
|
.setSmallIcon(R.drawable.ic_launcher)
|
||||||
.setContentIntent(pi)
|
.setContentIntent(pi)
|
||||||
|
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||||
.build();
|
.build();
|
||||||
n.flags |= Notification.FLAG_ONGOING_EVENT;
|
n.flags |= Notification.FLAG_ONGOING_EVENT;
|
||||||
startForeground(NOTIFICATION_RUNNING, n);
|
startForeground(NOTIFICATION_RUNNING, n);
|
||||||
|
|
Loading…
Reference in a new issue