diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/cards/AbstractCard.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/cards/AbstractCard.java index 5669cb1fd7..9fccd2fced 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/cards/AbstractCard.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/cards/AbstractCard.java @@ -105,27 +105,8 @@ public abstract class AbstractCard { settings.setDisplayZoomControls(false); settings.setSupportZoom(true); } - /* - //Scale web view font size with system font size - float scale = ctx.getResources().getConfiguration().fontScale; - if (android.os.Build.VERSION.SDK_INT >= 14) { - settings.setTextZoom((int) (scale * 100f)); - } else { - if (scale <= 0.7f) { - settings.setTextSize(WebSettings.TextSize.SMALLEST); - } else if (scale <= 0.85f) { - settings.setTextSize(WebSettings.TextSize.SMALLER); - } else if (scale <= 1.0f) { - settings.setTextSize(WebSettings.TextSize.NORMAL); - } else if (scale <= 1.15f) { - settings.setTextSize(WebSettings.TextSize.LARGER); - } else { - settings.setTextSize(WebSettings.TextSize.LARGEST); - } - } -*/ + wv.setBackgroundColor(Color.argb(1, 0, 0, 0)); - //wv.setScrollContainer(false); wv.getSettings().setJavaScriptEnabled(true); if (hasImageUrl) { wv.loadData("", "text/html", "UTF-8"); @@ -139,26 +120,6 @@ public abstract class AbstractCard { ll.addView(wv, lp); dialog.setContentView(ll); - /* - wv.setFocusable(true); - wv.setFocusableInTouchMode(true); - wv.requestFocus(View.FOCUS_DOWN); - wv.setOnTouchListener(new View.OnTouchListener() { - @Override - public boolean onTouch(View v, MotionEvent event) { - switch (event.getAction()) { - case MotionEvent.ACTION_DOWN: - case MotionEvent.ACTION_UP: - if (!v.hasFocus()) { - v.requestFocus(); - } - break; - } - return false; - } - }); - */ - dialog.setCancelable(true); dialog.show(); }