mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
set default notification priority to low
since we're a foreground service, in oreo we already get a higher priority; see https://developer.android.com/reference/android/app/NotificationManager.html#IMPORTANCE_MIN
This commit is contained in:
parent
798125ef7a
commit
dd502e55f8
1 changed files with 2 additions and 2 deletions
|
|
@ -207,8 +207,8 @@ public final class TermuxService extends Service implements SessionChangedCallba
|
|||
builder.setOngoing(true);
|
||||
|
||||
// If holding a wake or wifi lock consider the notification of high priority since it's using power,
|
||||
// otherwise use a minimal priority since this is just a background service notification:
|
||||
builder.setPriority((wakeLockHeld) ? Notification.PRIORITY_HIGH : Notification.PRIORITY_MIN);
|
||||
// otherwise use a low priority
|
||||
builder.setPriority((wakeLockHeld) ? Notification.PRIORITY_HIGH : Notification.PRIORITY_LOW);
|
||||
|
||||
// No need to show a timestamp:
|
||||
builder.setShowWhen(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue