From de1ba15a7708ecc2c240d30e4d27e1968e649b0a Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 6 Jan 2017 11:05:59 +0100 Subject: [PATCH] return super.onTouchEvent(event) --- OsmAnd/src/net/osmand/plus/views/POIMapLayer.java | 4 ++-- .../android/sample1/mapcontextmenu/ContextMenuHelper.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index 081ea0cb41..8db80980fa 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -369,7 +369,6 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon settings.setBuiltInZoomControls(true); settings.setDisplayZoomControls(false); settings.setSupportZoom(true); - wv.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null); wv.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null); // wv.loadUrl(OsMoService.SIGN_IN_URL + app.getSettings().OSMO_DEVICE_KEY.get()); @@ -395,7 +394,8 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon } break; } - return false; + //return false; + return super.onTouchEvent(event); } }); diff --git a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java index ed9dee3742..c0b3d05d32 100644 --- a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java +++ b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java @@ -105,7 +105,6 @@ public class ContextMenuHelper { settings.setBuiltInZoomControls(true); settings.setDisplayZoomControls(false); settings.setSupportZoom(true); - wv.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null); wv.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null); // wv.loadUrl(OsMoService.SIGN_IN_URL + app.getSettings().OSMO_DEVICE_KEY.get()); @@ -131,7 +130,8 @@ public class ContextMenuHelper { } break; } - return false; + //return false; + return super.onTouchEvent(event); } });