From ceb6b142504ce3f224063c248870147391ee6af8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 9 Oct 2016 15:40:54 +0200 Subject: [PATCH] add menu buttons for hiding and unhiding folders --- .../gallery/activities/MainActivity.java | 14 ++++++++++++++ app/src/main/res/menu/directories_cab.xml | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java index 12661b8c1..1443b0fb3 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -584,6 +584,12 @@ public class MainActivity extends SimpleActivity prepareForDeleting(); mode.finish(); return true; + case R.id.cab_hide: + hideFolders(); + return true; + case R.id.cab_unhide: + unhideFolders(); + return true; default: return false; } @@ -603,6 +609,14 @@ public class MainActivity extends SimpleActivity return false; } + private void hideFolders() { + + } + + private void unhideFolders() { + + } + private void scanCompleted(final String path) { final File dir = new File(path); if (dir.isDirectory()) { diff --git a/app/src/main/res/menu/directories_cab.xml b/app/src/main/res/menu/directories_cab.xml index 899f43389..d82c156d3 100644 --- a/app/src/main/res/menu/directories_cab.xml +++ b/app/src/main/res/menu/directories_cab.xml @@ -6,6 +6,16 @@ android:icon="@mipmap/rename" android:title="@string/rename" app:showAsAction="ifRoom"/> + +