From b4ad86301a8ef97afc19a3ae5c69991d22ea5d76 Mon Sep 17 00:00:00 2001 From: Davide Ficano Date: Fri, 23 Aug 2019 14:26:09 +0200 Subject: [PATCH] hide progressbar because suddenly it remains visible when the actionmode is destroyed --- .../com/ternaryop/photoshelf/fragment/ImagePickerFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/ternaryop/photoshelf/fragment/ImagePickerFragment.kt b/app/src/main/java/com/ternaryop/photoshelf/fragment/ImagePickerFragment.kt index 64a7cd61..fe16cec2 100755 --- a/app/src/main/java/com/ternaryop/photoshelf/fragment/ImagePickerFragment.kt +++ b/app/src/main/java/com/ternaryop/photoshelf/fragment/ImagePickerFragment.kt @@ -225,6 +225,8 @@ class ImagePickerFragment : AbsPhotoShelfFragment(), OnPhotoBrowseClickMultiChoi imagePickerAdapter.showButtons = false imagePickerAdapter.selection.clear() selectedItemsViewContainer.updateList(emptyList()) + // the constraintLayout shows the progressbar so we hide it + progressbar.visibility = GONE } private fun retrieveImages(destDirectory: File? = null) {