From f9efbc6220b53689d2d1ef47832cdf1064260f40 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 4 Jul 2022 15:45:18 +0200 Subject: [PATCH] hide ascending/descending at random sorting --- .../gallery/pro/dialogs/ChangeSortingDialog.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/ChangeSortingDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/ChangeSortingDialog.kt index bcaddb1ed..a08c4257c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/ChangeSortingDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/ChangeSortingDialog.kt @@ -56,9 +56,9 @@ class ChangeSortingDialog( view.sorting_dialog_numeric_sorting.beVisibleIf(isSortingByNameOrPath) view.use_for_this_folder_divider.beVisibleIf(view.sorting_dialog_numeric_sorting.isVisible() || view.sorting_dialog_use_for_this_folder.isVisible()) - val isCustomSorting = checkedId == sortingRadio.sorting_dialog_radio_custom.id - view.sorting_dialog_radio_order.beGoneIf(isCustomSorting) - view.sorting_dialog_order_divider.beGoneIf(isCustomSorting) + val hideSortOrder = checkedId == sortingRadio.sorting_dialog_radio_custom.id || checkedId == sortingRadio.sorting_dialog_radio_random.id + view.sorting_dialog_radio_order.beGoneIf(hideSortOrder) + view.sorting_dialog_order_divider.beGoneIf(hideSortOrder) } val sortBtn = when {