|
|
|
@ -5229,7 +5229,17 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
|
available.add(kw);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Collections.sort(available);
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
String global = prefs.getString("global_keywords", null);
|
|
|
|
|
if (global != null)
|
|
|
|
|
for (String kw : global.split(" "))
|
|
|
|
|
if (!available.contains(kw))
|
|
|
|
|
available.add(kw);
|
|
|
|
|
|
|
|
|
|
final Collator collator = Collator.getInstance(Locale.getDefault());
|
|
|
|
|
collator.setStrength(Collator.SECONDARY); // Case insensitive, process accents etc
|
|
|
|
|
|
|
|
|
|
Collections.sort(available, collator);
|
|
|
|
|
|
|
|
|
|
return new Pair<>(selected, available);
|
|
|
|
|
}
|
|
|
|
|