Remove "Groups" section from challenge filter

This commit is contained in:
Hafiz 2025-06-10 16:06:35 -05:00
parent 98c1098b86
commit 8dc10bfdbd
2 changed files with 0 additions and 47 deletions

View file

@ -37,42 +37,6 @@
android:visibility="invisible"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
style="@style/Caption3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/groups"
android:textAllCaps="true" />
<Button
android:id="@+id/challenge_filter_button_all"
style="@style/Body1_Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end|center_vertical"
android:text="@string/all"
android:textColor="#6133b4"
android:textSize="16sp"
android:padding="0dp" />
<Button
android:id="@+id/challenge_filter_button_none"
style="@style/Body1_Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end|center_vertical"
android:text="@string/none"
android:textColor="#6133b4"
android:textSize="16sp"
android:padding="0dp"/>
</LinearLayout>
<com.habitrpg.android.habitica.ui.helpers.RecyclerViewEmptySupport
android:id="@+id/challenge_filter_recycler_view"
android:layout_width="match_parent"

View file

@ -22,8 +22,6 @@ internal class ChallengeFilterDialogHolder private constructor(
private var adapter: ChallengesFilterRecyclerViewAdapter? = null
init {
binding.challengeFilterButtonAll.setOnClickListener { allClicked() }
binding.challengeFilterButtonNone.setOnClickListener { noneClicked() }
binding.challengeFilterOwned.setOnCheckedChangeListener { _, isChecked ->
currentFilter?.showOwned = isChecked
}
@ -59,15 +57,6 @@ internal class ChallengeFilterDialogHolder private constructor(
binding.challengeFilterRecyclerView.state = RecyclerViewState.DISPLAYING_DATA
}
private fun allClicked() {
this.adapter?.checkedEntries?.clear()
adapter?.checkedEntries?.addAll(filterGroups)
}
private fun noneClicked() {
this.adapter?.checkedEntries?.clear()
}
companion object {
fun showDialog(
activity: Activity,