mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
using an Apply at sorting dialog
This commit is contained in:
parent
ee32c1ab3a
commit
95ff1b1b95
1 changed files with 5 additions and 4 deletions
|
@ -24,10 +24,11 @@ class ChangeSortingDialog(val activity: SimpleActivity, val isDirectorySorting:
|
||||||
|
|
||||||
init {
|
init {
|
||||||
config = activity.config
|
config = activity.config
|
||||||
view = LayoutInflater.from(activity).inflate(R.layout.dialog_change_sorting, null)
|
view = LayoutInflater.from(activity).inflate(R.layout.dialog_change_sorting, null).apply {
|
||||||
view.use_for_this_folder_divider.beVisibleIf(showFolderCheckbox)
|
use_for_this_folder_divider.beVisibleIf(showFolderCheckbox)
|
||||||
view.sorting_dialog_use_for_this_folder.beVisibleIf(showFolderCheckbox)
|
sorting_dialog_use_for_this_folder.beVisibleIf(showFolderCheckbox)
|
||||||
view.sorting_dialog_use_for_this_folder.isChecked = config.hasCustomSorting(path)
|
sorting_dialog_use_for_this_folder.isChecked = config.hasCustomSorting(path)
|
||||||
|
}
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setPositiveButton(R.string.ok, this)
|
.setPositiveButton(R.string.ok, this)
|
||||||
|
|
Loading…
Reference in a new issue