From fa0fd250cfc53f540b63de1eab1e9370e86f2bc8 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sun, 14 Jan 2018 01:40:04 +0100 Subject: [PATCH] Attempt to fix crash with ExternalPebbleJSActivity #863 --- .../gadgetbridge/service/devices/pebble/PebbleIoThread.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java index 5178fb814..b4830b51c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java @@ -200,6 +200,7 @@ class PebbleIoThread extends GBDeviceIoThread { } if (GBApplication.getGBPrefs().isBackgroundJsEnabled()) { Intent startIntent = new Intent(getContext(), ExternalPebbleJSActivity.class); + startIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startIntent.putExtra(ExternalPebbleJSActivity.START_BG_WEBVIEW, true); getContext().startActivity(startIntent); } else {