From 674c82c15dc02f1237351bb4798aa678c2bbac92 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 25 Dec 2016 16:32:19 +0100 Subject: [PATCH] add a Select all button to the directories screen too --- .../gallery/adapters/DirectoryAdapter.kt | 12 ++++++++++++ app/src/main/res/menu/cab_directories.xml | 5 +++++ 2 files changed, 17 insertions(+) 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 ab7c770fb..805434399 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -67,6 +67,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList toggleFoldersVisibility(true) R.id.cab_unhide -> toggleFoldersVisibility(false) R.id.cab_copy_move -> displayCopyDialog() + R.id.cab_select_all -> selectAll() R.id.cab_delete -> askConfirmDelete() else -> return false } @@ -203,6 +204,17 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList +