mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
on retrying after fail, restart task
This commit is contained in:
@@ -81,7 +81,10 @@ public class OwnerReturnShardActivity extends BaseActivity
|
|||||||
if (success) onSuccessDismissed();
|
if (success) onSuccessDismissed();
|
||||||
});
|
});
|
||||||
viewModel.getErrorTryAgain().observeEvent(this, tryAgain -> {
|
viewModel.getErrorTryAgain().observeEvent(this, tryAgain -> {
|
||||||
if (tryAgain) showNextFragment(new OwnerRecoveryModeMainFragment());
|
if (tryAgain) {
|
||||||
|
viewModel.startListening();
|
||||||
|
showQrCodeFragment();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
viewModel.getState()
|
viewModel.getState()
|
||||||
.observe(this, this::onReturnShardStateChanged);
|
.observe(this, this::onReturnShardStateChanged);
|
||||||
|
|||||||
Reference in New Issue
Block a user