mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-24 00:29:52 +01:00
Dont use onBackPressed when retrying after error
This commit is contained in:
@@ -81,7 +81,7 @@ public class OwnerReturnShardActivity extends BaseActivity
|
|||||||
if (success) onSuccessDismissed();
|
if (success) onSuccessDismissed();
|
||||||
});
|
});
|
||||||
viewModel.getErrorTryAgain().observeEvent(this, tryAgain -> {
|
viewModel.getErrorTryAgain().observeEvent(this, tryAgain -> {
|
||||||
if (tryAgain) onBackPressed();
|
if (tryAgain) showNextFragment(new OwnerRecoveryModeMainFragment());
|
||||||
});
|
});
|
||||||
viewModel.getState()
|
viewModel.getState()
|
||||||
.observe(this, this::onReturnShardStateChanged);
|
.observe(this, this::onReturnShardStateChanged);
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
|||||||
import static junit.framework.TestCase.fail;
|
import static junit.framework.TestCase.fail;
|
||||||
import static org.briarproject.bramble.test.TestUtils.deleteTestDirectory;
|
import static org.briarproject.bramble.test.TestUtils.deleteTestDirectory;
|
||||||
import static org.briarproject.bramble.test.TestUtils.getTestDirectory;
|
import static org.briarproject.bramble.test.TestUtils.getTestDirectory;
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class ReturnShardIntegrationTest extends BrambleTestCase {
|
public class ReturnShardIntegrationTest extends BrambleTestCase {
|
||||||
|
|||||||
Reference in New Issue
Block a user