Unverified Commit 86a0d24f authored by Filipe Brito's avatar Filipe Brito Committed by GitHub

Merge branch 'develop' into develop

parents 421a600b da53bc60
...@@ -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)
} }
} }
......
...@@ -362,8 +362,8 @@ ...@@ -362,8 +362,8 @@
<!-- User Details --> <!-- User Details -->
<string name="timezone">Часовой пояс</string> <string name="timezone">Часовой пояс</string>
<string name="status">Status: %1$s</string> <!-- TODO Translate --> <string name="status">Статус: %1$s</string>
<string name="user_detail_status">Status</string> <!-- TODO Translate --> <string name="user_detail_status">Статус</string>
<!-- Report --> <!-- Report -->
<string name="submit">Отправить</string> <string name="submit">Отправить</string>
......
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