Slide
Slide copied to clipboard
Sort multireddits in "Add /r/x to"
Slide version: https://github.com/ccrama/Slide/commit/e24aaad50a81649feb7e03f049df27c6333ba906 Android version: Pie
Now when you try to add a subreddit to a multi through the sidebar the multis are unsorted. It's a minor thing but an inconvenience nonetheless.
Proposed fix, MainActivity line 2428.
List multiList = new ArrayList(multis.keySet());
Collections.sort(multiList);
new MaterialDialog.Builder(MainActivity.this).title(
getString(R.string.multi_add_to,
subreddit.getDisplayName()))
.items(multiList)
Is this a cosmetic issue or a code issue?
Purely cosmetic. Using the list as it is provided (unsorted) makes the multi listing behavior inconsistent.
Hello, I'm very new to development, but I'd like to work on this issue. Can someone direct me to a starting point for this?
Around here, with a similar fix as in the original issue post, so you don't want to add just the keySet, you want to add a sorted keySet.