Verified Commit bd192720 authored by akwizgran's avatar akwizgran

Throw exception if account exists when beginning setup.

parent b77b885a
Pipeline #1491 passed with stage
in 12 minutes and 4 seconds
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment