diff options
| author | David Göransson <david.goransson90@gmail.com> | 2023-10-13 11:12:22 +0200 |
|---|---|---|
| committer | David Göransson <david.goransson90@gmail.com> | 2023-10-23 11:28:23 +0200 |
| commit | c085b31acdc002076106a30f7cd1dcdcd43daf05 (patch) | |
| tree | 3488bf2a2745f25de2560ed734556ed04b18ed00 /android/lib | |
| parent | 4f521533f58c9e2f80470dd084a07b50c704a1b3 (diff) | |
| download | mullvadvpn-c085b31acdc002076106a30f7cd1dcdcd43daf05.tar.xz mullvadvpn-c085b31acdc002076106a30f7cd1dcdcd43daf05.zip | |
Rework notifications
Diffstat (limited to 'android/lib')
2 files changed, 2 insertions, 16 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) - } - } -} +) diff --git a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/dimensions/Dimensions.kt b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/dimensions/Dimensions.kt index ec2c2ff18e..3bb59368f3 100644 --- a/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/dimensions/Dimensions.kt +++ b/android/lib/theme/src/main/kotlin/net/mullvad/mullvadvpn/lib/theme/dimensions/Dimensions.kt @@ -37,7 +37,7 @@ data class Dimensions( val loadingSpinnerStrokeWidth: Dp = 6.dp, val loginIconContainerSize: Dp = 44.dp, val mediumPadding: Dp = 16.dp, - val notificationBannerEndPadding: Dp = 12.dp, + val notificationBannerEndPadding: Dp = 8.dp, val notificationBannerStartPadding: Dp = 16.dp, val notificationEndIconPadding: Dp = 4.dp, val notificationStatusIconSize: Dp = 10.dp, |
