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)