summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-02-19 22:18:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-19 22:18:15 +0000
commite611b8590d8da69bb95e29a7faa5200a95b427f3 (patch)
treeab48e964cf9301758f74279615ff7d0fc35b61de
parent9a7124e8ac0c052fbc4bb6a14fa63f87fd996eb1 (diff)
parent61a77ab51d26e142b3681a020b21366a17a39da7 (diff)
downloadpackages_apps_Settings-e611b8590d8da69bb95e29a7faa5200a95b427f3.zip
packages_apps_Settings-e611b8590d8da69bb95e29a7faa5200a95b427f3.tar.gz
packages_apps_Settings-e611b8590d8da69bb95e29a7faa5200a95b427f3.tar.bz2
Merge "Fix bug #13084552 Correct list of accounts are not shown when tapping ...on type of accounts(corporate,google etc.,) in Settings under Accounts section"
-rw-r--r--src/com/android/settings/SettingsActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java
index b4970c1..db44444 100644
--- a/src/com/android/settings/SettingsActivity.java
+++ b/src/com/android/settings/SettingsActivity.java
@@ -789,8 +789,10 @@ public class SettingsActivity extends Activity
return;
}
if (header != null && mCurrentHeader != null && header.id == mCurrentHeader.id &&
- header.id != R.id.account_add) {
- // This is the header we are currently displaying (except "Add Account"). Just make sure
+ header.id != R.id.account_add &&
+ !header.fragment.equals(ManageAccountsSettings.class.getName())) {
+ // This is the header we are currently displaying (except "Add Account" or
+ // "Corporate"/"Google" Account entries that share the same fragment). Just make sure
// to pop the stack up to its root state.
getFragmentManager().popBackStack(BACK_STACK_PREFS,
FragmentManager.POP_BACK_STACK_INCLUSIVE);