mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-31 04:06:43 +01:00
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();
|
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()) {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue