add menu buttons for hiding and unhiding folders

This commit is contained in:
tibbi 2016-10-09 15:40:54 +02:00
parent 16fa3733c9
commit ceb6b14250
2 changed files with 24 additions and 0 deletions

View file

@ -584,6 +584,12 @@ public class MainActivity extends SimpleActivity
prepareForDeleting(); prepareForDeleting();
mode.finish(); mode.finish();
return true; return true;
case R.id.cab_hide:
hideFolders();
return true;
case R.id.cab_unhide:
unhideFolders();
return true;
default: default:
return false; return false;
} }
@ -603,6 +609,14 @@ public class MainActivity extends SimpleActivity
return false; return false;
} }
private void hideFolders() {
}
private void unhideFolders() {
}
private void scanCompleted(final String path) { private void scanCompleted(final String path) {
final File dir = new File(path); final File dir = new File(path);
if (dir.isDirectory()) { if (dir.isDirectory()) {

View file

@ -6,6 +6,16 @@
android:icon="@mipmap/rename" android:icon="@mipmap/rename"
android:title="@string/rename" android:title="@string/rename"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item
android:id="@+id/cab_hide"
android:icon="@mipmap/hide"
android:title="@string/hide_folder"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/cab_unhide"
android:icon="@mipmap/unhide"
android:title="@string/unhide_folder"
app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/cab_delete" android:id="@+id/cab_delete"
android:icon="@mipmap/delete" android:icon="@mipmap/delete"