From 0a6c553cc7e9a4bddebbce2f683b71c75c53d541 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 25 Oct 2018 10:42:48 +0200 Subject: [PATCH] updating commons to 5.2.6 --- app/build.gradle | 2 +- .../gallery/dialogs/ChangeSortingDialog.kt | 1 - .../gallery/helpers/Constants.kt | 3 --- .../gallery/helpers/MediaFetcher.kt | 2 +- .../main/res/layout/dialog_change_sorting.xml | 22 +++++++++---------- app/src/main/res/values-sk/strings.xml | 1 - app/src/main/res/values/strings.xml | 1 - 7 files changed, 13 insertions(+), 19 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7badf85fd..643479e83 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,7 +48,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.2.1' + implementation 'com.simplemobiletools:commons:5.2.6' implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0' implementation 'androidx.multidex:multidex:2.0.0' implementation 'it.sephiroth.android.exif:library:1.0.1' 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 da162cfef..aebce7915 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ChangeSortingDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ChangeSortingDialog.kt @@ -10,7 +10,6 @@ import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.helpers.SHOW_ALL -import com.simplemobiletools.gallery.helpers.SORT_BY_RANDOM import kotlinx.android.synthetic.main.dialog_change_sorting.view.* class ChangeSortingDialog(val activity: BaseSimpleActivity, val isDirectorySorting: Boolean, showFolderCheckbox: Boolean, diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt index 7e37d6ba4..29c738dfa 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt @@ -157,6 +157,3 @@ const val BOTTOM_ACTION_RENAME = 1024 const val BOTTOM_ACTION_SET_AS = 2048 const val DEFAULT_BOTTOM_ACTIONS = BOTTOM_ACTION_TOGGLE_FAVORITE or BOTTOM_ACTION_EDIT or BOTTOM_ACTION_SHARE or BOTTOM_ACTION_DELETE - -// sorting -const val SORT_BY_RANDOM = 16384 \ No newline at end of file diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index 6312293bd..eaa1b7be5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -343,7 +343,7 @@ class MediaFetcher(val context: Context) { return dateTakens } - fun sortMedia (media: ArrayList, sorting: Int) { + fun sortMedia(media: ArrayList, sorting: Int) { if (sorting and SORT_BY_RANDOM != 0) { media.shuffle() return diff --git a/app/src/main/res/layout/dialog_change_sorting.xml b/app/src/main/res/layout/dialog_change_sorting.xml index 1b2be9ebc..4ac35ce0f 100644 --- a/app/src/main/res/layout/dialog_change_sorting.xml +++ b/app/src/main/res/layout/dialog_change_sorting.xml @@ -11,8 +11,8 @@ android:layout_height="wrap_content" android:orientation="vertical" android:paddingLeft="@dimen/activity_margin" - android:paddingRight="@dimen/activity_margin" - android:paddingTop="@dimen/activity_margin"> + android:paddingTop="@dimen/activity_margin" + android:paddingRight="@dimen/activity_margin"> @@ -84,16 +84,16 @@ android:id="@+id/sorting_dialog_radio_ascending" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingBottom="@dimen/medium_margin" android:paddingTop="@dimen/medium_margin" + android:paddingBottom="@dimen/medium_margin" android:text="@string/ascending"/> @@ -105,8 +105,8 @@ android:id="@+id/sorting_dialog_use_for_this_folder" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingBottom="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin" + android:paddingBottom="@dimen/activity_margin" android:text="@string/use_for_this_folder"/> diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index a0a97565e..f4cbde3f0 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -221,7 +221,6 @@ Táto aplikácia je iba jednou zo skupiny aplikácií. Ostatné viete nájsť na https://www.simplemobiletools.com - Náhodne