Merge "Fix dictionary pack preference order."

main
Jean Chalard 2013-05-30 06:38:27 +00:00 committed by Android (Google) Code Review
commit 8eb214d7e1
1 changed files with 2 additions and 0 deletions

View File

@ -222,7 +222,9 @@ public final class DictionarySettingsFragment extends PreferenceFragment
refreshNetworkState(); refreshNetworkState();
removeAnyDictSettings(prefScreen); removeAnyDictSettings(prefScreen);
int i = 0;
for (Preference preference : prefList) { for (Preference preference : prefList) {
preference.setOrder(i++);
prefScreen.addPreference(preference); prefScreen.addPreference(preference);
} }
} }