summaryrefslogtreecommitdiffhomepage
path: root/android/lib/common
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson90@gmail.com>2023-10-13 11:12:22 +0200
committerDavid Göransson <david.goransson90@gmail.com>2023-10-23 11:28:23 +0200
commitc085b31acdc002076106a30f7cd1dcdcd43daf05 (patch)
tree3488bf2a2745f25de2560ed734556ed04b18ed00 /android/lib/common
parent4f521533f58c9e2f80470dd084a07b50c704a1b3 (diff)
downloadmullvadvpn-c085b31acdc002076106a30f7cd1dcdcd43daf05.tar.xz
mullvadvpn-c085b31acdc002076106a30f7cd1dcdcd43daf05.zip
Rework notifications
Diffstat (limited to 'android/lib/common')
-rw-r--r--android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt16
1 files changed, 1 insertions, 15 deletions
diff --git a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt
index f009f4857b..bbdd2a56a5 100644
--- a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt
+++ b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/ErrorNotificationMessage.kt
@@ -1,21 +1,7 @@
package net.mullvad.mullvadvpn.lib.common.util
-import android.content.res.Resources
-
data class ErrorNotificationMessage(
val titleResourceId: Int,
val messageResourceId: Int,
val optionalMessageArgument: String? = null
-) {
- fun getTitleText(resources: Resources): String {
- return resources.getString(titleResourceId)
- }
-
- fun getMessageText(resources: Resources): String {
- return if (optionalMessageArgument != null) {
- resources.getString(messageResourceId, optionalMessageArgument)
- } else {
- resources.getString(messageResourceId)
- }
- }
-}
+)