Dont use onBackPressed when retrying after error

This commit is contained in:
ameba23
2021-04-27 13:07:45 +02:00
parent 68f135adad
commit 26a35b3212
2 changed files with 1 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ public class OwnerReturnShardActivity extends BaseActivity
if (success) onSuccessDismissed();
});
viewModel.getErrorTryAgain().observeEvent(this, tryAgain -> {
if (tryAgain) onBackPressed();
if (tryAgain) showNextFragment(new OwnerRecoveryModeMainFragment());
});
viewModel.getState()
.observe(this, this::onReturnShardStateChanged);

View File

@@ -22,7 +22,6 @@ import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static junit.framework.TestCase.fail;
import static org.briarproject.bramble.test.TestUtils.deleteTestDirectory;
import static org.briarproject.bramble.test.TestUtils.getTestDirectory;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class ReturnShardIntegrationTest extends BrambleTestCase {