diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index e244f756..72e2fbdb 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -305,6 +305,10 @@ public class TunnelListFragment extends BaseFragment { .whenComplete(TunnelListFragment.this::onTunnelDeletionFinished); mode.finish(); return true; + case R.id.menu_action_select_all: + for (int i = 0; i < tunnelList.getAdapter().getCount(); ++i) + tunnelList.setItemChecked(i, true); + return true; default: return false; } diff --git a/app/src/main/res/drawable/ic_action_select_all.xml b/app/src/main/res/drawable/ic_action_select_all.xml new file mode 100644 index 00000000..2ddfb85a --- /dev/null +++ b/app/src/main/res/drawable/ic_action_select_all.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/tunnel_list_action_mode.xml b/app/src/main/res/menu/tunnel_list_action_mode.xml index 6b03cd19..22f61943 100644 --- a/app/src/main/res/menu/tunnel_list_action_mode.xml +++ b/app/src/main/res/menu/tunnel_list_action_mode.xml @@ -1,6 +1,12 @@ + Currently using dark night theme Currently using light day theme Delete + Select all DNS servers Edit Endpoint