Added select found

pull/164/head
M66B 5 years ago
parent e943593035
commit 863a9ca988

@ -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;

@ -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>

@ -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>

Loading…
Cancel
Save