1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Added select found

This commit is contained in:
M66B 2019-10-29 08:18:54 +01:00
parent e943593035
commit 863a9ca988
3 changed files with 8 additions and 4 deletions

View file

@ -2730,6 +2730,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
menu.findItem(R.id.menu_select_all).setVisible(!outbox &&
(viewType == AdapterMessage.ViewType.UNIFIED || viewType == AdapterMessage.ViewType.FOLDER));
menu.findItem(R.id.menu_select_found).setVisible(viewType == AdapterMessage.ViewType.SEARCH);
menu.findItem(R.id.menu_empty_trash).setVisible(
viewType == AdapterMessage.ViewType.FOLDER && EntityFolder.TRASH.equals(type));
menu.findItem(R.id.menu_empty_spam).setVisible(
@ -2820,6 +2821,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
return true;
case R.id.menu_select_all:
case R.id.menu_select_found:
onMenuSelectAll();
return true;

View file

@ -93,25 +93,26 @@
<item
android:id="@+id/menu_select_all"
android:icon="@drawable/baseline_format_size_24"
android:title="@string/title_select_all"
app:showAsAction="never" />
<item
android:id="@+id/menu_select_found"
android:title="@string/title_select_found"
app:showAsAction="never" />
<item
android:id="@+id/menu_empty_trash"
android:icon="@drawable/baseline_delete_24"
android:title="@string/title_empty_trash"
app:showAsAction="never" />
<item
android:id="@+id/menu_empty_spam"
android:icon="@drawable/baseline_delete_24"
android:title="@string/title_empty_spam"
app:showAsAction="never" />
<item
android:id="@+id/menu_force_sync"
android:icon="@drawable/baseline_sync_24"
android:title="@string/title_force_sync"
app:showAsAction="never" />
</menu>

View file

@ -702,6 +702,7 @@
<string name="title_compact">Compact view</string>
<string name="title_zoom">Text size</string>
<string name="title_select_all">Select all</string>
<string name="title_select_found">Select found</string>
<string name="title_force_sync">Force sync</string>
<string name="title_previous">Previous</string>