From 747e007fd0548637108df7fb058f9a7bd2e9fe9b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 3 Dec 2016 18:32:30 +0100 Subject: [PATCH] removing a check from sorting, not sure why was it there --- .../gallery/dialogs/ChangeSortingDialog.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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() }