mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
updating min required Android OS version to Lollipop (5)
This commit is contained in:
@ -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')
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user