From 8c32c32c2b34d20b4376aa617a900132d2c14d24 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 31 May 2018 16:40:50 +0200 Subject: wg-quick: don't break push notifications Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/util/ToolsInstaller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/com/wireguard') 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 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; } -- cgit v1.2.3