mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +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);
|
setContentView(R.layout.activity_fragment_container);
|
||||||
|
|
||||||
if (state == null) {
|
if (state == null) {
|
||||||
|
if (setupController.accountExists())
|
||||||
|
throw new AssertionError();
|
||||||
showInitialFragment(AuthorNameFragment.newInstance());
|
showInitialFragment(AuthorNameFragment.newInstance());
|
||||||
} else {
|
} else {
|
||||||
authorName = state.getString(STATE_KEY_AUTHOR_NAME);
|
authorName = state.getString(STATE_KEY_AUTHOR_NAME);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package org.briarproject.briar.android.login;
|
|||||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||||
|
|
||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface SetupController {
|
public interface SetupController extends PasswordController {
|
||||||
|
|
||||||
void setSetupActivity(SetupActivity setupActivity);
|
void setSetupActivity(SetupActivity setupActivity);
|
||||||
|
|
||||||
@@ -13,8 +13,6 @@ public interface SetupController {
|
|||||||
|
|
||||||
void setPassword(String password);
|
void setPassword(String password);
|
||||||
|
|
||||||
float estimatePasswordStrength(String password);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This should be called after the author name has been set.
|
* This should be called after the author name has been set.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user