summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-08-31 14:42:29 +0200
committerAlbin <albin@mullvad.net>2022-08-31 14:42:29 +0200
commitaf06f424d3dbd843f4201af4e652b8322ce9e9e9 (patch)
tree4db036bfcfee770496e934a4c0a982208fe439f5 /android/app/src
parentb05f9c588f5c88e98a9d36af84765bbd1254be43 (diff)
parent8690eb44035462934d5045bf7d5324efffb5eda2 (diff)
downloadmullvadvpn-af06f424d3dbd843f4201af4e652b8322ce9e9e9.tar.xz
mullvadvpn-af06f424d3dbd843f4201af4e652b8322ce9e9e9.zip
Merge branch 'fix-android-unsafe-cast'
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/AccountRepository.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/AccountRepository.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/AccountRepository.kt
index 6a58739aec..a402d985f9 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/AccountRepository.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/AccountRepository.kt
@@ -32,7 +32,7 @@ class AccountRepository(
state.container.accountDataSource.accountCreationResult
}
.onEach {
- _cachedCreatedAccount.value = (it as AccountCreationResult.Success).accountToken
+ _cachedCreatedAccount.value = (it as? AccountCreationResult.Success)?.accountToken
}
.shareIn(
CoroutineScope(dispatcher),