summaryrefslogtreecommitdiffhomepage
path: root/android/app
diff options
context:
space:
mode:
Diffstat (limited to 'android/app')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/AccountExpiryNotification.kt1
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/NotificationChannel.kt5
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/TunnelStateNotification.kt1
3 files changed, 5 insertions, 2 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/AccountExpiryNotification.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/AccountExpiryNotification.kt
index 2d1e86b46c..8c27f985a2 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/AccountExpiryNotification.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/AccountExpiryNotification.kt
@@ -41,6 +41,7 @@ class AccountExpiryNotification(
R.string.account_time_notification_channel_name,
R.string.account_time_notification_channel_description,
NotificationManager.IMPORTANCE_HIGH,
+ true,
true
)
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/NotificationChannel.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/NotificationChannel.kt
index cceb5b4344..cb875d0d6b 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/NotificationChannel.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/NotificationChannel.kt
@@ -15,7 +15,8 @@ class NotificationChannel(
name: Int,
description: Int,
importance: Int,
- isVibrationEnabled: Boolean
+ isVibrationEnabled: Boolean,
+ isBadgeEnabled: Boolean
) {
private val badgeColor by lazy {
context.getColor(R.color.colorPrimary)
@@ -30,7 +31,7 @@ class NotificationChannel(
val channel = NotificationChannelCompat.Builder(id, importance)
.setName(channelName)
.setDescription(channelDescription)
- .setShowBadge(true)
+ .setShowBadge(isBadgeEnabled)
.setVibrationEnabled(isVibrationEnabled)
.build()
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/TunnelStateNotification.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/TunnelStateNotification.kt
index 5a6cc690ce..94002ba735 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/TunnelStateNotification.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/TunnelStateNotification.kt
@@ -24,6 +24,7 @@ class TunnelStateNotification(val context: Context) {
R.string.foreground_notification_channel_name,
R.string.foreground_notification_channel_description,
NotificationManager.IMPORTANCE_MIN,
+ false,
false
)