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