summaryrefslogtreecommitdiffhomepage
path: root/android/lib/common
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-23 13:37:15 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-23 13:37:15 +0200
commitf58efc23d12e3a17b0fe9be759abd6e99eb01aee (patch)
tree22f08db8c8f32fa6dcee7d38a45259c914383293 /android/lib/common
parent8f9cff2d73cb235daf79fddcc6f6e4e3a4a12d3b (diff)
parentc43b476f492eac0948efe574f974a2a0301f6c35 (diff)
downloadmullvadvpn-f58efc23d12e3a17b0fe9be759abd6e99eb01aee.tar.xz
mullvadvpn-f58efc23d12e3a17b0fe9be759abd6e99eb01aee.zip
Merge branch 'add-in-app-banner-message-for-a-new-device-droid-92'
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)
- }
- }
-}
+)