Skip to content

Commit 30e00a8

Browse files
Media: handle back press on selection correct
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent aa66609 commit 30e00a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,10 @@ class GalleryAdapter(
314314
}
315315
}
316316

317+
@SuppressLint("NotifyDataSetChanged")
317318
override fun setMultiSelect(boolean: Boolean) {
318319
ocFileListDelegate.isMultiSelect = boolean
320+
notifyDataSetChanged()
319321
}
320322

321323
private fun getAllFiles(): List<OCFile> = cachedAllFiles ?: files.flatMap { galleryItem ->

0 commit comments

Comments
 (0)