From 9d17c5a5680b79eb4b1266e44ade9f6501048771 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 20 Jun 2017 20:39:13 +0200 Subject: [PATCH] add a Select All button --- .../filemanager/adapters/ItemsAdapter.kt | 14 +++++++++++--- app/src/main/res/menu/cab.xml | 5 +++++ 2 files changed, 16 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 b6826a5b..050b3fd9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt @@ -56,11 +56,11 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList shareFiles() R.id.cab_copy_to -> copyMoveTo(true) R.id.cab_move_to -> copyMoveTo(false) + R.id.cab_select_all -> selectAll() R.id.cab_delete -> askConfirmDelete() else -> return false } @@ -168,6 +169,15 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList +