From 09dbb061e449e9316ff43fd62fb59e7b2a13e772 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Jan 2023 19:50:37 +0100 Subject: [PATCH] fix #2247, allow toggling between Folders and All Files easily with a menu item --- app/src/main/res/drawable/ic_files_vector.xml | 3 +++ app/src/main/res/drawable/ic_folders_vector.xml | 3 +++ app/src/main/res/menu/menu_main.xml | 12 ++++++------ app/src/main/res/menu/menu_media.xml | 12 ++++++------ 4 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 app/src/main/res/drawable/ic_files_vector.xml create mode 100644 app/src/main/res/drawable/ic_folders_vector.xml diff --git a/app/src/main/res/drawable/ic_files_vector.xml b/app/src/main/res/drawable/ic_files_vector.xml new file mode 100644 index 000000000..8968b527a --- /dev/null +++ b/app/src/main/res/drawable/ic_files_vector.xml @@ -0,0 +1,3 @@ + + + diff --git a/app/src/main/res/drawable/ic_folders_vector.xml b/app/src/main/res/drawable/ic_folders_vector.xml new file mode 100644 index 000000000..f607e6d1f --- /dev/null +++ b/app/src/main/res/drawable/ic_folders_vector.xml @@ -0,0 +1,3 @@ + + + diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index 89b718f99..2271f7606 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -8,11 +8,16 @@ android:icon="@drawable/ic_camera_vector" android:title="@string/open_camera" app:showAsAction="always" /> + + app:showAsAction="ifRoom" /> - + + app:showAsAction="ifRoom" /> -