Skip to content

Commit a44b74a

Browse files
tobiasKaminskyalperozturk96
authored andcommitted
Media: handle back press on selection correct
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent d3f5d5f commit a44b74a

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)