Skip to content

Commit 1ac794b

Browse files
committed
updating min required Android OS version to Lollipop (5)
1 parent 00f0051 commit 1ac794b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88

99
defaultConfig {
1010
applicationId "com.simplemobiletools.filemanager"
11-
minSdkVersion 16
11+
minSdkVersion 21
1212
targetSdkVersion 28
1313
versionCode 57
1414
versionName "4.3.1"
@@ -42,7 +42,7 @@ android {
4242
}
4343

4444
dependencies {
45-
implementation 'com.simplemobiletools:commons:4.10.1'
45+
implementation 'com.simplemobiletools:commons:5.0.2'
4646

4747
implementation files('../libs/RootTools.jar')
4848
}

app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
539539

540540
override fun onViewRecycled(holder: ViewHolder) {
541541
super.onViewRecycled(holder)
542-
if (!activity.isActivityDestroyed()) {
542+
if (!activity.isDestroyed) {
543543
Glide.with(activity).clear(holder.itemView.item_icon!!)
544544
}
545545
}
@@ -577,7 +577,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
577577
path
578578
}
579579

580-
if (!activity.isActivityDestroyed()) {
580+
if (!activity.isDestroyed) {
581581
if (hasOTGConnected && itemToLoad is String && itemToLoad.startsWith(OTG_PATH)) {
582582
itemToLoad = itemToLoad.getOTGPublicPath(activity)
583583
}

app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
173173
private fun getItems(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) {
174174
skipItemUpdating = false
175175
Thread {
176-
if (activity?.isActivityDestroyed() == false) {
176+
if (activity?.isDestroyed == false) {
177177
if (path.startsWith(OTG_PATH)) {
178178
val getProperFileSize = context!!.config.sorting and SORT_BY_SIZE != 0
179179
context!!.getOTGItems(path, context!!.config.shouldShowHidden, getProperFileSize) {

0 commit comments

Comments
 (0)