Added update notification channel

This commit is contained in:
M66B
2019-06-23 15:17:45 +02:00
parent b56d295723
commit 1bce1da06d
3 changed files with 10 additions and 1 deletions

View File

@@ -310,6 +310,14 @@ public class ApplicationEx extends Application {
notification.enableLights(true);
nm.createNotificationChannel(notification);
if (!Helper.isPlayStoreInstall(this)) {
NotificationChannel update = new NotificationChannel(
"update", getString(R.string.channel_update),
NotificationManager.IMPORTANCE_HIGH);
update.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
nm.createNotificationChannel(update);
}
NotificationChannel warning = new NotificationChannel(
"warning", getString(R.string.channel_warning),
NotificationManager.IMPORTANCE_HIGH);