diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-01-17 12:27:44 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-17 12:27:44 -0800 |
commit | bbffd7835c819899d66da2852c46bdabd0c26c5f (patch) | |
tree | 72e1723f9e0cf1d0660a435765e8518fc528cafc /src | |
parent | 3b9b6533a5e50ed146ec24c084533fa35a2d1d01 (diff) | |
parent | 100d51fbe9ba23088398f06848ba99a9cfb1c5a9 (diff) | |
download | packages_apps_Settings-bbffd7835c819899d66da2852c46bdabd0c26c5f.zip packages_apps_Settings-bbffd7835c819899d66da2852c46bdabd0c26c5f.tar.gz packages_apps_Settings-bbffd7835c819899d66da2852c46bdabd0c26c5f.tar.bz2 |
Merge "Fix bug #3333939 (Add secondary Account UI needs some love)" into honeycomb
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/accounts/AccountSyncSettings.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/settings/accounts/AccountSyncSettings.java b/src/com/android/settings/accounts/AccountSyncSettings.java index 298f1b6..aef8b8a 100644 --- a/src/com/android/settings/accounts/AccountSyncSettings.java +++ b/src/com/android/settings/accounts/AccountSyncSettings.java @@ -55,6 +55,7 @@ import android.widget.TextView; import java.io.IOException; import java.util.ArrayList; +import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.List; @@ -212,7 +213,6 @@ public class AccountSyncSettings extends AccountPreferenceBase { String title = getString(R.string.sync_item_title, providerLabel); item.setTitle(title); item.setKey(authority); - getPreferenceScreen().addPreference(item); mCheckBoxes.add(item); } @@ -472,6 +472,11 @@ public class AccountSyncSettings extends AccountPreferenceBase { } } } + + Collections.sort(mCheckBoxes); + for (int i = 0, n = mCheckBoxes.size(); i < n; i++) { + getPreferenceScreen().addPreference(mCheckBoxes.get(i)); + } } /** |