set notification channel importances correctly

This commit is contained in:
Philipp Crocoll
2018-02-09 12:22:49 +01:00
parent 737c63e8b0
commit 7b63346bd0

View File

@@ -846,9 +846,9 @@ namespace keepass2android
#endif
public class App : Application {
public const string NotificationChannelIdUnlocked = "channel_db_unlocked_3";
public const string NotificationChannelIdQuicklocked = "channel_db_quicklocked_3";
public const string NotificationChannelIdEntry = "channel_db_entry_3";
public const string NotificationChannelIdUnlocked = "channel_db_unlocked_5";
public const string NotificationChannelIdQuicklocked = "channel_db_quicklocked_5";
public const string NotificationChannelIdEntry = "channel_db_entry_5";
public App (IntPtr javaReference, JniHandleOwnership transfer)
: base(javaReference, transfer)
@@ -877,7 +877,7 @@ namespace keepass2android
string name = GetString(Resource.String.DbUnlockedChannel_name);
string desc = GetString(Resource.String.DbUnlockedChannel_desc);
NotificationChannel mChannel =
new NotificationChannel(NotificationChannelIdUnlocked, name, NotificationImportance.Low);
new NotificationChannel(NotificationChannelIdUnlocked, name, NotificationImportance.Min);
mChannel.Description = desc;
mChannel.EnableLights(false);
mChannel.EnableVibration(false);
@@ -899,7 +899,7 @@ namespace keepass2android
string name = GetString(Resource.String.EntryChannel_name);
string desc = GetString(Resource.String.EntryChannel_desc);
NotificationChannel mChannel =
new NotificationChannel(NotificationChannelIdEntry, name, NotificationImportance.None);
new NotificationChannel(NotificationChannelIdEntry, name, NotificationImportance.Default);
mChannel.Description = desc;
mChannel.EnableLights(false);
mChannel.EnableVibration(false);