1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Pebble: Pass booleans from Javascript Appmessage as such

(missing parts from c2af2dd15c in master)
This commit is contained in:
Andreas Shimokawa 2017-07-30 23:27:49 +02:00
parent 30d6b96432
commit 3b35bde42c

View File

@ -474,9 +474,6 @@ public class WebViewSingleton {
if (passKey) {
Object obj = in.get(inKey);
if (obj instanceof Boolean) {
obj = ((Boolean) obj) ? "true" : "false";
}
out.put(outKey, obj);
} else {
GB.toast("Discarded key " + inKey + ", not found in the local configuration and is not an integer key.", Toast.LENGTH_SHORT, GB.WARN);