mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 00:17:41 +01:00
Ensure we upgrade properly from v1.
This commit is contained in:
committed by
Cody Henthorne
parent
8a023100ea
commit
957f473e77
@@ -137,17 +137,17 @@ class LocalBackupsFragment : ComposeFragment() {
|
||||
backupKey = state.accountEntropyPool.displayValue,
|
||||
onNavigationClick = { requireActivity().onBackPressedDispatcher.onBackPressed() },
|
||||
onNextClick = {
|
||||
if (!backstack.contains(LocalBackupsNavKey.SETTINGS)) {
|
||||
backstack.add(0, LocalBackupsNavKey.SETTINGS)
|
||||
}
|
||||
|
||||
backstack.removeAll { it != LocalBackupsNavKey.SETTINGS }
|
||||
|
||||
scope.launch {
|
||||
upgradeInProgress = true
|
||||
viewModel.handleUpgrade(requireContext())
|
||||
upgradeInProgress = false
|
||||
|
||||
if (!backstack.contains(LocalBackupsNavKey.SETTINGS)) {
|
||||
backstack.add(0, LocalBackupsNavKey.SETTINGS)
|
||||
}
|
||||
|
||||
backstack.removeAll { it != LocalBackupsNavKey.SETTINGS }
|
||||
|
||||
snackbarHostState.showSnackbar(
|
||||
message = backupKeyUpdatedMessage
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user