From cc7c6a1e241d38f6946bfdb92c5b5c76b79f7d49 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 17 Nov 2016 10:45:52 +0100 Subject: [PATCH] make sure unselecting items work on all android versions --- .../gallery/adapters/DirectoryAdapter.kt | 14 +++++++++++--- app/src/main/res/layout-v23/directory_tmb.xml | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index 794bd15f0..11aba4cdf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -1,5 +1,6 @@ package com.simplemobiletools.gallery.adapters +import android.os.Build import android.support.v7.view.ActionMode import android.support.v7.widget.RecyclerView import android.view.* @@ -24,6 +25,13 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList