Merge "Fix the text of the authentication label on rotation" into ub-gmail-ur14-dev
This commit is contained in:
commit
c845295ffb
@ -256,6 +256,17 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment
|
|||||||
|
|
||||||
configureEditor();
|
configureEditor();
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
|
final List<VendorPolicyLoader.OAuthProvider> oauthProviders =
|
||||||
|
AccountSettingsUtils.getAllOAuthProviders(getActivity());
|
||||||
|
final boolean offerOAuth = (mServiceInfo.offerOAuth && oauthProviders.size() > 0);
|
||||||
|
if (mAuthenticationLabel != null) {
|
||||||
|
if (offerOAuth) {
|
||||||
|
mAuthenticationLabel.setText(R.string.authentication_label);
|
||||||
|
} else {
|
||||||
|
mAuthenticationLabel.setText(R.string.account_setup_basics_password_label);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -342,16 +353,9 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment
|
|||||||
mServiceInfo = mSetupData.getIncomingServiceInfo(getActivity());
|
mServiceInfo = mSetupData.getIncomingServiceInfo(getActivity());
|
||||||
final List<VendorPolicyLoader.OAuthProvider> oauthProviders =
|
final List<VendorPolicyLoader.OAuthProvider> oauthProviders =
|
||||||
AccountSettingsUtils.getAllOAuthProviders(getActivity());
|
AccountSettingsUtils.getAllOAuthProviders(getActivity());
|
||||||
final boolean offerOAuth = (mServiceInfo.offerOAuth && oauthProviders.size() > 0);
|
|
||||||
|
|
||||||
|
final boolean offerOAuth = (mServiceInfo.offerOAuth && oauthProviders.size() > 0);
|
||||||
mAuthenticationView.setAuthInfo(offerOAuth, recvAuth);
|
mAuthenticationView.setAuthInfo(offerOAuth, recvAuth);
|
||||||
if (mAuthenticationLabel != null) {
|
|
||||||
if (offerOAuth) {
|
|
||||||
mAuthenticationLabel.setText(R.string.authentication_label);
|
|
||||||
} else {
|
|
||||||
mAuthenticationLabel.setText(R.string.account_setup_basics_password_label);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final String username = recvAuth.mLogin;
|
final String username = recvAuth.mLogin;
|
||||||
if (username != null) {
|
if (username != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user