Added update notification channel

pull/156/head
M66B 5 years ago
parent b56d295723
commit 1bce1da06d

@ -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>

Loading…
Cancel
Save