diff options
| author | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2023-10-23 13:37:15 +0200 |
|---|---|---|
| committer | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2023-10-23 13:37:15 +0200 |
| commit | f58efc23d12e3a17b0fe9be759abd6e99eb01aee (patch) | |
| tree | 22f08db8c8f32fa6dcee7d38a45259c914383293 /android/lib/common | |
| parent | 8f9cff2d73cb235daf79fddcc6f6e4e3a4a12d3b (diff) | |
| parent | c43b476f492eac0948efe574f974a2a0301f6c35 (diff) | |
| download | mullvadvpn-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.kt | 16 |
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) - } - } -} +) |
