Unverified Commit b54c697a authored by Hussein El Feky's avatar Hussein El Feky Committed by GitHub

Merge branch 'develop' into viewpager-rtl

parents 5c47673f 5769e45c
...@@ -69,7 +69,6 @@ class DirectorySortingBottomSheetFragment : BottomSheetDialogFragment() { ...@@ -69,7 +69,6 @@ class DirectorySortingBottomSheetFragment : BottomSheetDialogFragment() {
override fun onCancel(dialog: DialogInterface?) { override fun onCancel(dialog: DialogInterface?) {
super.onCancel(dialog) super.onCancel(dialog)
directoryFragment.updateSorting(isSortByChannels, isSearchForGlobalUsers)
} }
private fun setupView() { private fun setupView() {
...@@ -87,16 +86,19 @@ class DirectorySortingBottomSheetFragment : BottomSheetDialogFragment() { ...@@ -87,16 +86,19 @@ class DirectorySortingBottomSheetFragment : BottomSheetDialogFragment() {
checkSelection(text_channels, hashtagDrawable) checkSelection(text_channels, hashtagDrawable)
uncheckSelection(text_users, userDrawable) uncheckSelection(text_users, userDrawable)
isSortByChannels = true isSortByChannels = true
directoryFragment.updateSorting(isSortByChannels, isSearchForGlobalUsers)
} }
text_users.setOnClickListener { text_users.setOnClickListener {
checkSelection(text_users, userDrawable) checkSelection(text_users, userDrawable)
uncheckSelection(text_channels, hashtagDrawable) uncheckSelection(text_channels, hashtagDrawable)
isSortByChannels = false isSortByChannels = false
directoryFragment.updateSorting(isSortByChannels, isSearchForGlobalUsers)
} }
switch_global_users.setOnCheckedChangeListener { _, isChecked -> switch_global_users.setOnCheckedChangeListener { _, isChecked ->
isSearchForGlobalUsers = isChecked isSearchForGlobalUsers = isChecked
directoryFragment.updateSorting(isSortByChannels, isSearchForGlobalUsers)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment