1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-12 02:45:49 +01:00

Attempt to fix crash with ExternalPebbleJSActivity #863

This commit is contained in:
cpfeiffer 2018-01-14 01:40:04 +01:00
parent da5d1e3685
commit fa0fd250cf

View File

@ -200,6 +200,7 @@ class PebbleIoThread extends GBDeviceIoThread {
} }
if (GBApplication.getGBPrefs().isBackgroundJsEnabled()) { if (GBApplication.getGBPrefs().isBackgroundJsEnabled()) {
Intent startIntent = new Intent(getContext(), ExternalPebbleJSActivity.class); Intent startIntent = new Intent(getContext(), ExternalPebbleJSActivity.class);
startIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startIntent.putExtra(ExternalPebbleJSActivity.START_BG_WEBVIEW, true); startIntent.putExtra(ExternalPebbleJSActivity.START_BG_WEBVIEW, true);
getContext().startActivity(startIntent); getContext().startActivity(startIntent);
} else { } else {