Throw exception if account exists when beginning setup.

This commit is contained in:
akwizgran
2018-05-11 10:08:43 +01:00
parent b77b885a94
commit bd19272099
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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.
*/