Skip to content

Commit 7417cf7

Browse files
committed
fix: avoid name clash with platform method
1 parent fb340b3 commit 7417cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/gallery/adapters/DirectoryAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class DirectoryAdapter(
268268
}
269269

270270
private fun moveSelectedItemsToTop() {
271-
selectedKeys.reversed().forEach { key ->
271+
selectedKeys.toMutableList().reversed().forEach { key ->
272272
val position = dirs.indexOfFirst { it.path.hashCode() == key }
273273
val tempItem = dirs[position]
274274
dirs.removeAt(position)

0 commit comments

Comments
 (0)