Skip to content

Commit

Permalink
FLW-3692 We everytime should ask permission to google on "Export wall…
Browse files Browse the repository at this point in the history
…et" screen wip
  • Loading branch information
PankraSerg committed Aug 11, 2023
1 parent a23f353 commit c11361e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ buildscript {
minifyRelease = true
beaconVersion = "3.2.4"

sharedFeaturesVersion = "1.1.1.10-SNAPSHOT"
sharedFeaturesVersion = "1.1.1.11-SNAPSHOT"

coilDep = "io.coil-kt:coil:$coilVersion"
coilSvg = "io.coil-kt:coil-svg:$coilVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package jp.co.soramitsu.account.impl.presentation.backup_wallet

import android.content.Intent
import android.widget.LinearLayout
import androidx.activity.compose.ManagedActivityResultLauncher
import androidx.activity.result.ActivityResult
import androidx.activity.result.ActivityResultLauncher
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
Expand Down Expand Up @@ -37,6 +35,7 @@ import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.firstOrNull
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.onStart
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.launch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class BackupMnemonicViewModel @Inject constructor(
return
}

backupService.logout()
if (backupService.authorize(launcher)) {
openCreateBackupPasswordDialog(
substrateDerivationPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class SelectWalletViewModel @Inject constructor(

fun authorizeGoogle(launcher: ActivityResultLauncher<Intent>) {
launch {
backupService.logout()
if (backupService.authorize(launcher)) {
openAddWalletThroughGoogleScreen()
}
Expand Down

0 comments on commit c11361e

Please sign in to comment.