mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-14 04:53:22 +02:00
Added update notification channel
This commit is contained in:
@@ -737,7 +737,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
}
|
||||
|
||||
NotificationCompat.Builder builder =
|
||||
new NotificationCompat.Builder(ActivityView.this, "notification")
|
||||
new NotificationCompat.Builder(ActivityView.this, "update")
|
||||
.setSmallIcon(R.drawable.baseline_system_update_24)
|
||||
.setContentTitle(getString(R.string.title_updated, info.tag_name))
|
||||
.setAutoCancel(true)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<string name="channel_service">Service</string>
|
||||
<string name="channel_send">Send</string>
|
||||
<string name="channel_notification">Notifications</string>
|
||||
<string name="channel_update">Updates</string>
|
||||
<string name="channel_warning">Warnings</string>
|
||||
<string name="channel_error">Errors</string>
|
||||
<string name="channel_group_contacts">Contacts</string>
|
||||
|
||||
Reference in New Issue
Block a user