diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ChangeSortingDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ChangeSortingDialog.kt index c5b939178..dc6b2da93 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ChangeSortingDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ChangeSortingDialog.kt @@ -68,13 +68,9 @@ class ChangeSortingDialog(val activity: Activity, val isDirectorySorting: Boolea } if (isDirectorySorting) { - if (config.directorySorting != sorting) { - config.directorySorting = sorting - } + config.directorySorting = sorting } else { - if (config.sorting != sorting) { - config.sorting = sorting - } + config.sorting = sorting } callback.invoke() }