summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-31 16:40:50 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-31 16:40:50 +0200
commit1a6053dc32b64c7148f3b0bec62ff688f7ed0937 (patch)
tree6bd24f39ccb38734ce170ff3327289cbfacc2bf6 /app/src/main
parentc3360bcbe541c328f8e2d8773ae9ca33a327ef2a (diff)
wg-quick: don't break push notifications
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/wireguard/android/util/ToolsInstaller.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
index 5b1e1341..fc2897b3 100644
--- a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
+++ b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
@@ -57,9 +57,10 @@ public final class ToolsInstaller {
if (path == null)
return INSTALL_DIRS[0];
final List<String> paths = Arrays.asList(path.split(":"));
- for (final File dir : INSTALL_DIRS)
+ for (final File dir : INSTALL_DIRS) {
if (paths.contains(dir.getPath()) && dir.isDirectory())
return dir;
+ }
return null;
}