From 959b0862f53478705602b9a7a5382a35eb47771d Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 25 Feb 2017 18:59:39 +0100 Subject: [PATCH] update commons to 2.7.4 --- app/build.gradle | 2 +- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 2 +- .../gallery/asynctasks/GetDirectoriesAsynctask.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 40e18e1e6..825523aef 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,7 +32,7 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.7.3' + compile 'com.simplemobiletools:commons:2.7.4' compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 6335ea029..412d5f768 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -63,7 +63,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { directories_holder.setOnRefreshListener({ getDirectories() }) mDirs = ArrayList() - storeSDCardPath() + storeStoragePaths() } override fun onCreateOptionsMenu(menu: Menu): Boolean { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt index e132eaa56..0260ade1d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt @@ -69,7 +69,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va directory.addSize(size) } else { var dirName = parentDir.getFilenameFromPath() - if (parentDir == context.getInternalStoragePath()) { + if (parentDir == context.internalStoragePath) { dirName = context.getString(R.string.internal) } else if (parentDir == context.sdCardPath) { dirName = context.getString(R.string.sd_card)