From 988f5ef1b2f473920790afd1b1ecd6404a1b5e1a Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 18 Jun 2016 21:17:38 +0200 Subject: [PATCH] Go back and show Toast if the watchapp doesn't really support configuration. --- .../main/assets/app_config/js/gadgetbridge_boilerplate.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js index 7738e6f5..b37d5089 100644 --- a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js +++ b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js @@ -139,6 +139,11 @@ function gbPebble() { this.ready = function() { } + this.showConfiguration = function() { + console.error("This watchapp doesn't support configuration"); + GBjs.closeActivity(); + } + this.parseReturnedPebbleJS = function() { var str = document.getElementById('pastereturn').value; var needle = "pebblejs://close#";