updating min required Android OS version to Lollipop (5)

This commit is contained in:
tibbi
2018-10-11 11:23:29 +02:00
parent 00f00514a1
commit 1ac794b6dd
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ android {
defaultConfig { defaultConfig {
applicationId "com.simplemobiletools.filemanager" applicationId "com.simplemobiletools.filemanager"
minSdkVersion 16 minSdkVersion 21
targetSdkVersion 28 targetSdkVersion 28
versionCode 57 versionCode 57
versionName "4.3.1" versionName "4.3.1"
@ -42,7 +42,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:4.10.1' implementation 'com.simplemobiletools:commons:5.0.2'
implementation files('../libs/RootTools.jar') implementation files('../libs/RootTools.jar')
} }

View File

@ -539,7 +539,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
override fun onViewRecycled(holder: ViewHolder) { override fun onViewRecycled(holder: ViewHolder) {
super.onViewRecycled(holder) super.onViewRecycled(holder)
if (!activity.isActivityDestroyed()) { if (!activity.isDestroyed) {
Glide.with(activity).clear(holder.itemView.item_icon!!) Glide.with(activity).clear(holder.itemView.item_icon!!)
} }
} }
@ -577,7 +577,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
path path
} }
if (!activity.isActivityDestroyed()) { if (!activity.isDestroyed) {
if (hasOTGConnected && itemToLoad is String && itemToLoad.startsWith(OTG_PATH)) { if (hasOTGConnected && itemToLoad is String && itemToLoad.startsWith(OTG_PATH)) {
itemToLoad = itemToLoad.getOTGPublicPath(activity) itemToLoad = itemToLoad.getOTGPublicPath(activity)
} }

View File

@ -173,7 +173,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
private fun getItems(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) { private fun getItems(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) {
skipItemUpdating = false skipItemUpdating = false
Thread { Thread {
if (activity?.isActivityDestroyed() == false) { if (activity?.isDestroyed == false) {
if (path.startsWith(OTG_PATH)) { if (path.startsWith(OTG_PATH)) {
val getProperFileSize = context!!.config.sorting and SORT_BY_SIZE != 0 val getProperFileSize = context!!.config.sorting and SORT_BY_SIZE != 0
context!!.getOTGItems(path, context!!.config.shouldShowHidden, getProperFileSize) { context!!.getOTGItems(path, context!!.config.shouldShowHidden, getProperFileSize) {