diff --git a/app/src/main/java/com/nutomic/syncthingandroid/util/Util.java b/app/src/main/java/com/nutomic/syncthingandroid/util/Util.java index 147cb8e4..d405b782 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/util/Util.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/util/Util.java @@ -153,12 +153,11 @@ public class Util { } Log.i(TAG, "Failed to write test file '" + touchFile + "', " + error); - return false; + } else { + // Detected we have write permission. + Log.i(TAG, "Successfully wrote test file '" + touchFile + "'"); } - // Detected we have write permission. - Log.i(TAG, "Successfully wrote test file '" + touchFile + "'"); - // Remove test file. if (runShellCommand("rm \"" + touchFile + "\"\n", useRoot) != 0) { // This is very unlikely to happen, so we have less error handling.