diff --git a/app/src/main/java/net/i2p/android/router/util/Util.java b/app/src/main/java/net/i2p/android/router/util/Util.java index 563283df517ec5f640a45a9583ff3215468a7c8b..d9aeb71c39990a4c088622776a2711f4f1fbf7fc 100644 --- a/app/src/main/java/net/i2p/android/router/util/Util.java +++ b/app/src/main/java/net/i2p/android/router/util/Util.java @@ -154,11 +154,8 @@ public abstract class Util { x.equals("i2cp.disableInterface")) { // special exception, we must invert the bool for these properties only. String string = all.get(x).toString(); - String what="true"; - if(string.equals(what)) { - what="false"; - } - routerProps.setProperty(x, what); + String inverted = Boolean.toString(!Boolean.parseBoolean(string)); + routerProps.setProperty(x, inverted); } else { String string = all.get(x).toString(); routerProps.setProperty(x, string);