From d22c78e8f7006136f38aa68e48f86bc8d679382e Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sun, 1 Jan 2017 18:37:42 +0100 Subject: [PATCH] Pebble: webview, simplify the code since finals are not required anymore --- .../freeyourgadget/gadgetbridge/util/WebViewSingleton.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java index d988633ca..b19586a3f 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java @@ -46,11 +46,10 @@ public class WebViewSingleton extends Activity { public static WebView getorInitWebView(Context context, GBDevice device, UUID uuid) { if (context instanceof Activity) { - final MutableContextWrapper _contextWrapper = new MutableContextWrapper(context); if (contextWrapper != null) { contextWrapper.setBaseContext(context); } else { - contextWrapper = _contextWrapper; + contextWrapper = new MutableContextWrapper(context); } } //here we are sure that contextWrapper is either null or an activity, hence we run on the main thread