mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
removed step string
This commit is contained in:
@@ -36,11 +36,6 @@ implements InvitationListener {
|
||||
static final int REQUEST_BLUETOOTH = 1;
|
||||
static final int REQUEST_CREATE_IDENTITY = 2;
|
||||
|
||||
private static final int STEP_CHOOSE = 1;
|
||||
private static final int STEP_INVITE = 2;
|
||||
private static final int STEP_CONFIRM = 3;
|
||||
private static final int STEPS = 3;
|
||||
|
||||
private static final Logger LOG =
|
||||
Logger.getLogger(AddContactActivity.class.getName());
|
||||
|
||||
@@ -199,18 +194,7 @@ implements InvitationListener {
|
||||
this.view = view;
|
||||
view.init(this);
|
||||
setContentView(view);
|
||||
|
||||
int step = 0;
|
||||
if (view instanceof ChooseIdentityView) step = STEP_CHOOSE;
|
||||
else if (view instanceof InvitationCodeView) step = STEP_INVITE;
|
||||
else if (view instanceof ConfirmationCodeView) step = STEP_CONFIRM;
|
||||
if (step > 0) {
|
||||
getSupportActionBar().setTitle(
|
||||
String.format(getString(R.string.add_contact_title_step),
|
||||
step, STEPS));
|
||||
} else {
|
||||
getSupportActionBar().setTitle(R.string.add_contact_title);
|
||||
}
|
||||
getSupportActionBar().setTitle(R.string.add_contact_title);
|
||||
}
|
||||
|
||||
void reset(AddContactView view) {
|
||||
|
||||
@@ -83,15 +83,12 @@ public class KeyAgreementActivity extends BriarFragmentActivity implements
|
||||
if (b != null)
|
||||
localAuthorId = new AuthorId(b);
|
||||
}
|
||||
|
||||
getSupportActionBar().setTitle(R.string.add_contact_title);
|
||||
showStep(localAuthorId == null ? STEP_ID : STEP_QR);
|
||||
}
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
private void showStep(int step) {
|
||||
getSupportActionBar().setTitle(
|
||||
String.format(getString(R.string.add_contact_title_step), step,
|
||||
STEPS));
|
||||
switch (step) {
|
||||
case STEP_QR:
|
||||
startFragment(ShowQrCodeFragment.newInstance());
|
||||
|
||||
Reference in New Issue
Block a user