diff options
| author | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-08-14 12:05:03 +0200 |
|---|---|---|
| committer | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-08-15 10:31:11 +0200 |
| commit | 4264afea4965653ed1e18da9deab4e4fdb025f1f (patch) | |
| tree | 62e61123671a6407bc10b0dc41e2beb6361b0626 /android/lib | |
| parent | 02236af9f2f9e6c615c4d833f7f95de73bc8fbb0 (diff) | |
| download | mullvadvpn-4264afea4965653ed1e18da9deab4e4fdb025f1f.tar.xz mullvadvpn-4264afea4965653ed1e18da9deab4e4fdb025f1f.zip | |
Fix lint issues
Diffstat (limited to 'android/lib')
| -rw-r--r-- | android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt index ed3da5b1b1..3af3b8b4ae 100644 --- a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt +++ b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt @@ -6,7 +6,7 @@ import androidx.compose.material.icons.filled.Clear import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.vector.ImageVector -import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.platform.LocalResources import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.LinkAnnotation @@ -101,7 +101,7 @@ fun InAppNotification.toNotificationData( is InAppNotification.AccountExpiry -> NotificationData( title = stringResource(id = R.string.account_credit_expires_soon), - message = LocalContext.current.resources.getExpiryQuantityString(expiry), + message = LocalResources.current.getExpiryQuantityString(expiry), statusLevel = statusLevel, action = if (isPlayBuild) null |
