From b885e12d1a4c21ff965e9b45c1e4bd29dc010420 Mon Sep 17 00:00:00 2001 From: EnArvy <70991883+EnArvy@users.noreply.github.com> Date: Mon, 24 Apr 2023 19:45:42 +0530 Subject: Sorting subreddits on edit multireddit page (#1402) --- .../activities/SelectedSubredditsAndUsersActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/java') 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); -- cgit v1.2.3