remove divider when custom sorting is selected

This commit is contained in:
Pavel Poley 2022-05-11 12:14:20 +03:00
parent 9dc953def9
commit 97662dcb75
2 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,7 @@ class ChangeSortingDialog(val activity: BaseSimpleActivity, private val showCust
sortingRadio.setOnCheckedChangeListener { group, checkedId ->
val isCustomSorting = checkedId == sortingRadio.sorting_dialog_radio_custom.id
view.sorting_dialog_radio_order.beGoneIf(isCustomSorting)
view.divider.beGoneIf(isCustomSorting)
}
val sortBtn = when {

View File

@ -69,7 +69,9 @@
</RadioGroup>
<include layout="@layout/divider" />
<include
android:id="@+id/divider"
layout="@layout/divider" />
<RadioGroup
android:id="@+id/sorting_dialog_radio_order"