add menu buttons for hiding and unhiding folders
This commit is contained in:
parent
16fa3733c9
commit
ceb6b14250
2 changed files with 24 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
|
@ -6,6 +6,16 @@
|
|||
android:icon="@mipmap/rename"
|
||||
android:title="@string/rename"
|
||||
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
|
||||
android:id="@+id/cab_delete"
|
||||
android:icon="@mipmap/delete"
|
||||
|
|
Loading…
Reference in a new issue