updating min required Android OS version to Lollipop (5)
This commit is contained in:
parent
00f00514a1
commit
1ac794b6dd
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
applicationId "com.simplemobiletools.filemanager"
|
||||
minSdkVersion 16
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
versionCode 57
|
||||
versionName "4.3.1"
|
||||
|
@ -42,7 +42,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:4.10.1'
|
||||
implementation 'com.simplemobiletools:commons:5.0.2'
|
||||
|
||||
implementation files('../libs/RootTools.jar')
|
||||
}
|
||||
|
|
|
@ -539,7 +539,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
|
||||
override fun onViewRecycled(holder: ViewHolder) {
|
||||
super.onViewRecycled(holder)
|
||||
if (!activity.isActivityDestroyed()) {
|
||||
if (!activity.isDestroyed) {
|
||||
Glide.with(activity).clear(holder.itemView.item_icon!!)
|
||||
}
|
||||
}
|
||||
|
@ -577,7 +577,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
path
|
||||
}
|
||||
|
||||
if (!activity.isActivityDestroyed()) {
|
||||
if (!activity.isDestroyed) {
|
||||
if (hasOTGConnected && itemToLoad is String && itemToLoad.startsWith(OTG_PATH)) {
|
||||
itemToLoad = itemToLoad.getOTGPublicPath(activity)
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||
private fun getItems(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) {
|
||||
skipItemUpdating = false
|
||||
Thread {
|
||||
if (activity?.isActivityDestroyed() == false) {
|
||||
if (activity?.isDestroyed == false) {
|
||||
if (path.startsWith(OTG_PATH)) {
|
||||
val getProperFileSize = context!!.config.sorting and SORT_BY_SIZE != 0
|
||||
context!!.getOTGItems(path, context!!.config.shouldShowHidden, getProperFileSize) {
|
||||
|
|
Loading…
Reference in a new issue