Skip to content

Commit e18cce9

Browse files
committed
updating commons
1 parent 248ba75 commit e18cce9

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252
}
5353

5454
dependencies {
55-
implementation 'com.simplemobiletools:commons:5.20.6'
55+
implementation 'com.simplemobiletools:commons:5.21.0'
5656
implementation 'com.github.Stericson:RootTools:df729dcb13'
5757
implementation 'com.github.Stericson:RootShell:1.6'
5858
implementation 'com.alexvasilkov:gesture-views:2.5.2'

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
117117

118118
override fun getItemKeyPosition(key: Int) = listItems.indexOfFirst { it.path.hashCode() == key }
119119

120+
override fun onActionModeCreated() {}
121+
122+
override fun onActionModeDestroyed() {}
123+
120124
override fun getItemViewType(position: Int): Int {
121125
return if (listItems[position].isSectionTitle) {
122126
TYPE_SECTION

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ManageFavoritesAdapter.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class ManageFavoritesAdapter(activity: BaseSimpleActivity, var favorites: ArrayL
3737

3838
override fun getItemKeyPosition(key: Int) = favorites.indexOfFirst { it.hashCode() == key }
3939

40+
override fun onActionModeCreated() {}
41+
42+
override fun onActionModeDestroyed() {}
43+
4044
override fun prepareActionMode(menu: Menu) {}
4145

4246
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = createViewHolder(R.layout.item_manage_favorite, parent)
@@ -64,7 +68,7 @@ class ManageFavoritesAdapter(activity: BaseSimpleActivity, var favorites: ArrayL
6468

6569
private fun removeSelection() {
6670
val removeFavorites = ArrayList<String>(selectedKeys.size)
67-
val positions = java.util.ArrayList<Int>()
71+
val positions = ArrayList<Int>()
6872
selectedKeys.forEach {
6973
val key = it
7074
val position = favorites.indexOfFirst { it.hashCode() == key }

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.2'
12+
classpath 'com.android.tools.build:gradle:3.5.3'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

1515
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)