mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
sort stickers
This commit is contained in:
@@ -21,6 +21,8 @@ import org.thoughtcrime.securesms.mms.GlideApp;
|
||||
import org.thoughtcrime.securesms.mms.GlideRequests;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -75,6 +77,14 @@ public class StickerPickerView extends RecyclerView {
|
||||
}
|
||||
}
|
||||
|
||||
// Sort stickers just to provide consistent order
|
||||
Collections.sort(stickerFiles, new Comparator<File>() {
|
||||
@Override
|
||||
public int compare(File f1, File f2) {
|
||||
return f1.getName().compareToIgnoreCase(f2.getName());
|
||||
}
|
||||
});
|
||||
|
||||
return stickerFiles;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user