From 30bd5dc2501b5f0ea725cd42cf74c67271ae855f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 29 Oct 2017 10:44:08 +0100 Subject: [PATCH] clear selection at updating items --- .../filemanager/adapters/ItemsAdapter.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt index 51fba619..9e5639a9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt @@ -52,10 +52,11 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList) { mItems = newItems notifyDataSetChanged() + actMode?.finish() } override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): ViewHolder {