From e18cce99a8b039ccfa5010f34bda1331558a0db7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 18 Dec 2019 11:37:36 +0100 Subject: [PATCH] updating commons --- app/build.gradle | 2 +- .../filemanager/pro/adapters/ItemsAdapter.kt | 4 ++++ .../filemanager/pro/adapters/ManageFavoritesAdapter.kt | 6 +++++- build.gradle | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ba479b8f..02562b47 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -52,7 +52,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.20.6' + implementation 'com.simplemobiletools:commons:5.21.0' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' implementation 'com.alexvasilkov:gesture-views:2.5.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt index 4eb34cb6..fff8a462 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt @@ -117,6 +117,10 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList(selectedKeys.size) - val positions = java.util.ArrayList() + val positions = ArrayList() selectedKeys.forEach { val key = it val position = favorites.indexOfFirst { it.hashCode() == key } diff --git a/build.gradle b/build.gradle index 684c611c..969a4007 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.5.2' + classpath 'com.android.tools.build:gradle:3.5.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong