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:
parent
30d6b96432
commit
3b35bde42c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user