aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnArvy <70991883+EnArvy@users.noreply.github.com>2023-04-24 14:15:42 +0000
committerGitHub <noreply@github.com>2023-04-24 14:15:42 +0000
commitb885e12d1a4c21ff965e9b45c1e4bd29dc010420 (patch)
treefc5f3be5be4d9300d1b3525abb696de71910d361
parent44a553efac0c39407059f8795a3133040259da99 (diff)
downloadinfinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.tar
infinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.tar.gz
infinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.tar.bz2
infinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.tar.lz
infinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.tar.xz
infinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.tar.zst
infinity-for-reddit-b885e12d1a4c21ff965e9b45c1e4bd29dc010420.zip
Sorting subreddits on edit multireddit page (#1402)
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/SelectedSubredditsAndUsersActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SelectedSubredditsAndUsersActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SelectedSubredditsAndUsersActivity.java
index 7a29e200..bbe6e6b4 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SelectedSubredditsAndUsersActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SelectedSubredditsAndUsersActivity.java
@@ -19,6 +19,7 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.r0adkll.slidr.Slidr;
import java.util.ArrayList;
+import java.util.Collections;
import javax.inject.Inject;
import javax.inject.Named;
@@ -90,6 +91,8 @@ public class SelectedSubredditsAndUsersActivity extends BaseActivity implements
subreddits = getIntent().getStringArrayListExtra(EXTRA_SELECTED_SUBREDDITS);
}
+ Collections.sort(subreddits);
+
adapter = new SelectedSubredditsRecyclerViewAdapter(this, mCustomThemeWrapper, subreddits);
linearLayoutManager = new LinearLayoutManagerBugFixed(this);
recyclerView.setLayoutManager(linearLayoutManager);