diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-01-14 13:58:14 -0800 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-01-17 12:26:42 -0800 |
commit | 100d51fbe9ba23088398f06848ba99a9cfb1c5a9 (patch) | |
tree | 883d1ee3bb1564a05bfe089a5069b8e1babfa27d /src | |
parent | 6377e47f8b89982ebfa381542a301606a4bbb06d (diff) | |
download | packages_apps_Settings-100d51fbe9ba23088398f06848ba99a9cfb1c5a9.zip packages_apps_Settings-100d51fbe9ba23088398f06848ba99a9cfb1c5a9.tar.gz packages_apps_Settings-100d51fbe9ba23088398f06848ba99a9cfb1c5a9.tar.bz2 |
Fix bug #3333939 (Add secondary Account UI needs some love)
- sort the feed list in lexicographic order
Change-Id: Iab998624d9cb4154b32fe8e726b462c55e726687
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)); + } } /** |