File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import dagger.hilt.android.AndroidEntryPoint
3131import dev.chrisbanes.haze.hazeSource
3232import dev.chrisbanes.haze.rememberHazeState
3333import kotlinx.coroutines.CoroutineScope
34- import kotlinx.coroutines.flow.map
3534import kotlinx.coroutines.launch
3635import kotlinx.serialization.Serializable
3736import to.bitkit.R
@@ -118,9 +117,7 @@ class MainActivity : FragmentActivity() {
118117 val isRecoveryMode by walletViewModel.isRecoveryMode.collectAsStateWithLifecycle()
119118 val notificationsGranted by settingsViewModel.notificationsGranted.collectAsStateWithLifecycle()
120119 val keepActive by settingsViewModel.keepBitkitActiveInBackground.collectAsStateWithLifecycle()
121- val walletExists by walletViewModel.walletState
122- .map { it.walletExists }
123- .collectAsStateWithLifecycle(initialValue = walletViewModel.walletExists)
120+ val walletExists = walletViewModel.walletExists
124121 val isShowingMigrationLoading by walletViewModel.isShowingMigrationLoading.collectAsStateWithLifecycle()
125122 val restoreState by walletViewModel.restoreState.collectAsStateWithLifecycle()
126123 val hazeState = rememberHazeState(blurEnabled = true )
You can’t perform that action at this time.
0 commit comments