mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 01:21:11 +01:00
Added update notification channel
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user