diff --git a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java index 6703f735..93ddcc32 100644 --- a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java +++ b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java @@ -12,7 +12,7 @@ import com.wireguard.config.Config; import java.io.File; import java.io.IOException; import java.util.Collections; -import java.util.LinkedList; +import java.util.ArrayList; import java.util.List; import java.util.Set; @@ -51,7 +51,7 @@ public final class WgQuickBackend implements Backend { @Override public Set enumerate() { - final List output = new LinkedList<>(); + final List output = new ArrayList<>(); // Don't throw an exception here or nothing will show up in the UI. if (rootShell.run(output, "wg show interfaces") != 0 || output.isEmpty()) return Collections.emptySet();