scale wiki font size with screen density

This commit is contained in:
sonora 2017-01-06 12:54:49 +01:00
parent af90c97845
commit bb1020dd26

View file

@ -369,6 +369,7 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
settings.setBuiltInZoomControls(true);
settings.setDisplayZoomControls(false);
settings.setSupportZoom(true);
settings.setTextZoom(ctx.getResources().getDisplayMetrics().density);
wv.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null);
// wv.loadUrl(OsMoService.SIGN_IN_URL + app.getSettings().OSMO_DEVICE_KEY.get());
@ -393,9 +394,6 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
v.requestFocus();
}
break;
case MotionEvent.ACTION_POINTER_DOWN:
settings.setTextZoom( (int)(settings.getTextZoom() * 1.1) );
break;
}
return false;
}