From 1631a373b6006e6a6d9aa942682a7d0a750f1f99 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 11 Sep 2017 14:56:01 +0300 Subject: [PATCH] Fix mapillary webgl support --- .../src/net/osmand/plus/mapillary/MapillaryImageDialog.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapillary/MapillaryImageDialog.java b/OsmAnd/src/net/osmand/plus/mapillary/MapillaryImageDialog.java index c631ee8f68..775ae2b11c 100644 --- a/OsmAnd/src/net/osmand/plus/mapillary/MapillaryImageDialog.java +++ b/OsmAnd/src/net/osmand/plus/mapillary/MapillaryImageDialog.java @@ -190,11 +190,14 @@ public class MapillaryImageDialog extends ContextMenuCardDialog { } public View getContentView() { + return getWebView(); + /* if (getMapActivity().getMyApplication().getSettings().WEBGL_SUPPORTED.get()) { return getWebView(); } else { return getStaticImageView(); } + */ } @Override @@ -239,6 +242,7 @@ public class MapillaryImageDialog extends ContextMenuCardDialog { noInternetView.setVisibility(View.VISIBLE); } }); + /* webView.setWebChromeClient(new WebChromeClient() { @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { @@ -249,6 +253,7 @@ public class MapillaryImageDialog extends ContextMenuCardDialog { return false; } }); + */ noInternetView.findViewById(R.id.retry_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) {