1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 14:32:54 +01:00

Make application list sorting case-insensitive

This commit is contained in:
José Rebelo 2023-07-28 18:50:02 +01:00
parent 48ee259d89
commit 078d3e2a55

View File

@ -85,7 +85,7 @@ public class AppBlacklistAdapter extends RecyclerView.Adapter<AppBlacklistAdapte
public int compare(ApplicationInfo ai1, ApplicationInfo ai2) { public int compare(ApplicationInfo ai1, ApplicationInfo ai2) {
final String s1 = mNameMap.get(ai1); final String s1 = mNameMap.get(ai1);
final String s2 = mNameMap.get(ai2); final String s2 = mNameMap.get(ai2);
return s1.compareTo(s2); return s1.compareToIgnoreCase(s2);
} }
}); });