mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Throw exception if account exists when beginning setup.
This commit is contained in:
@@ -38,6 +38,8 @@ public class SetupActivity extends BaseActivity
|
||||
setContentView(R.layout.activity_fragment_container);
|
||||
|
||||
if (state == null) {
|
||||
if (setupController.accountExists())
|
||||
throw new AssertionError();
|
||||
showInitialFragment(AuthorNameFragment.newInstance());
|
||||
} else {
|
||||
authorName = state.getString(STATE_KEY_AUTHOR_NAME);
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.briarproject.briar.android.login;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
|
||||
@NotNullByDefault
|
||||
public interface SetupController {
|
||||
public interface SetupController extends PasswordController {
|
||||
|
||||
void setSetupActivity(SetupActivity setupActivity);
|
||||
|
||||
@@ -13,8 +13,6 @@ public interface SetupController {
|
||||
|
||||
void setPassword(String password);
|
||||
|
||||
float estimatePasswordStrength(String password);
|
||||
|
||||
/**
|
||||
* This should be called after the author name has been set.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user