mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 19:03:39 +00:00
Switch KCS priority to MIN on JB+. Eliminates icon in status bar!
This commit is contained in:
parent
dda8a214a4
commit
5a525a2e58
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package org.thoughtcrime.securesms.service;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.AlarmManager;
|
||||
import android.app.Notification;
|
||||
import android.app.PendingIntent;
|
||||
@ -185,6 +186,7 @@ public class KeyCachingService extends Service {
|
||||
}
|
||||
}
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
|
||||
private void foregroundServiceModern() {
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
||||
|
||||
@ -192,7 +194,7 @@ public class KeyCachingService extends Service {
|
||||
builder.setContentText(getString(R.string.KeyCachingService_textsecure_passphrase_cached));
|
||||
builder.setSmallIcon(R.drawable.icon_cached);
|
||||
builder.setWhen(0);
|
||||
builder.setPriority(Notification.PRIORITY_LOW);
|
||||
builder.setPriority(Notification.PRIORITY_MIN);
|
||||
|
||||
builder.addAction(R.drawable.ic_menu_lock_holo_dark, getString(R.string.KeyCachingService_lock), buildLockIntent());
|
||||
builder.setContentIntent(buildLaunchIntent());
|
||||
|
Loading…
x
Reference in New Issue
Block a user