Add explicit mention of beta server to login screen (#1102)

* Add explicit mention of beta server to login screen of beta product flavour

* Add explicit mention of beta server to login screen of beta product flavour

* Add explicit mention of beta server to login screen of beta product flavour

* Add explicit mention of beta server to login screen of beta product flavour

* Add explicit mention of beta server to login screen of beta product flavour

* Add explicit mention of beta server to login screen of beta product flavour
This commit is contained in:
Tanvi Dadu 2018-02-24 22:09:52 +05:30 committed by Vivek Maskara
parent a7a2b51ceb
commit a52680d646
3 changed files with 25 additions and 2 deletions

View file

@ -72,6 +72,7 @@ public class LoginActivity extends AccountAuthenticatorActivity {
@BindView(R.id.loginTwoFactor) EditText twoFactorEdit;
@BindView(R.id.error_message_container) ViewGroup errorMessageContainer;
@BindView(R.id.error_message) TextView errorMessage;
@BindView(R.id.login_credentials) TextView loginCredentials;
@BindView(R.id.two_factor_container)TextInputLayout twoFactorContainer;
ProgressDialog progressDialog;
private AppCompatDelegate delegate;
@ -112,6 +113,12 @@ public class LoginActivity extends AccountAuthenticatorActivity {
loginButton.setOnClickListener(view -> performLogin());
signupButton.setOnClickListener(view -> signUp());
if(BuildConfig.FLAVOR == "beta"){
loginCredentials.setText(getString(R.string.login_credential));
} else {
loginCredentials.setVisibility(View.GONE);
}
}