Skip to content

Commit

Permalink
Fix the app becoming blank after scanning a QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
X1nto committed Apr 8, 2024
1 parent 6919f0c commit 8eb3b57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/xinto/mauth/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import dev.olshevski.navigation.reimagined.navigate
import dev.olshevski.navigation.reimagined.pop
import dev.olshevski.navigation.reimagined.rememberNavController
import dev.olshevski.navigation.reimagined.replaceAll
import dev.olshevski.navigation.reimagined.replaceLast
import kotlinx.coroutines.runBlocking
import org.koin.android.ext.android.inject

Expand Down Expand Up @@ -197,7 +198,7 @@ class MainActivity : FragmentActivity() {
QrScanScreen(
onBack = navigator::pop,
onScan = {
navigator.replaceAll(MauthDestination.AddAccount(it))
navigator.replaceLast(MauthDestination.AddAccount(it))
}
)
}
Expand Down

0 comments on commit 8eb3b57

Please sign in to comment.