summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Hibdon <mhibdon@google.com>2014-09-08 12:54:49 -0700
committerMartin Hibdon <mhibdon@google.com>2014-09-08 12:54:49 -0700
commit606213ea022c75e156249c37d4374e8ceb4d2340 (patch)
tree9f6a108cfcffa8f388e4b064f3417f1108230079 /src
parent1be8b05bb59c3e87fef0f4c474a24f678367b495 (diff)
downloadandroid_packages_apps_Email-606213ea022c75e156249c37d4374e8ceb4d2340.tar.gz
android_packages_apps_Email-606213ea022c75e156249c37d4374e8ceb4d2340.tar.bz2
android_packages_apps_Email-606213ea022c75e156249c37d4374e8ceb4d2340.zip
Fix the text of the authentication label on rotation
b/17410251 Change-Id: I1e902da85a8525e597d205d3be520e6eb6db7f50
Diffstat (limited to 'src')
-rw-r--r--src/com/android/email/activity/setup/AccountSetupIncomingFragment.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java b/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
index 7ae2c38e8..b403fbf26 100644
--- a/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
+++ b/src/com/android/email/activity/setup/AccountSetupIncomingFragment.java
@@ -256,6 +256,17 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment
configureEditor();
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());
final List<VendorPolicyLoader.OAuthProvider> oauthProviders =
AccountSettingsUtils.getAllOAuthProviders(getActivity());
- final boolean offerOAuth = (mServiceInfo.offerOAuth && oauthProviders.size() > 0);
+ final boolean offerOAuth = (mServiceInfo.offerOAuth && oauthProviders.size() > 0);
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;
if (username != null) {