mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +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();
|
||||
});
|
||||
viewModel.getErrorTryAgain().observeEvent(this, tryAgain -> {
|
||||
if (tryAgain) onBackPressed();
|
||||
if (tryAgain) showNextFragment(new OwnerRecoveryModeMainFragment());
|
||||
});
|
||||
viewModel.getState()
|
||||
.observe(this, this::onReturnShardStateChanged);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user