fix build

This commit is contained in:
sonora 2017-01-06 15:16:38 +01:00
parent e2ec0347ac
commit 2cfaaac9a9
2 changed files with 10 additions and 10 deletions

View file

@ -374,15 +374,15 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f)); settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f));
} else { } else {
if (ctx.getResources().getDisplayMetrics().density <= 0.5f) { if (ctx.getResources().getDisplayMetrics().density <= 0.5f) {
settings.setTextSize(settings.TextSize.SMALLEST); WebSettings.setTextSize(WebSettings.TextSize.SMALLEST);
} else if (ctx.getResources().getDisplayMetrics().density <= 0.75f) { } else if (ctx.getResources().getDisplayMetrics().density <= 0.75f) {
settings.setTextSize(settings.TextSize.SMALLER); WebSettings.setTextSize(WebSettings.TextSize.SMALLER);
} else if (ctx.getResources().getDisplayMetrics().density <= 1.0f) { } else if (ctx.getResources().getDisplayMetrics().density <= 1.0f) {
settings.setTextSize(settings.TextSize.NORMAL); WebSettings.setTextSize(WebSettings.TextSize.NORMAL);
} else if (ctx.getResources().getDisplayMetrics().density <= 1.5f) { } else if (ctx.getResources().getDisplayMetrics().density <= 1.5f) {
settings.setTextSize(settings.TextSize.LARGER); WebSettings.setTextSize(WebSettings.TextSize.LARGER);
} else { } else {
settings.setTextSize(settings.TextSize.LARGEST); WebSettings.setTextSize(WebSettings.TextSize.LARGEST);
} }
} }

View file

@ -110,15 +110,15 @@ public class ContextMenuHelper {
settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f)); settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f));
} else { } else {
if (ctx.getResources().getDisplayMetrics().density <= 0.5f) { if (ctx.getResources().getDisplayMetrics().density <= 0.5f) {
settings.setTextSize(settings.TextSize.SMALLEST); WebSettings.setTextSize(WebSettings.TextSize.SMALLEST);
} else if (ctx.getResources().getDisplayMetrics().density <= 0.75f) { } else if (ctx.getResources().getDisplayMetrics().density <= 0.75f) {
settings.setTextSize(settings.TextSize.SMALLER); WebSettings.setTextSize(WebSettings.TextSize.SMALLER);
} else if (ctx.getResources().getDisplayMetrics().density <= 1.0f) { } else if (ctx.getResources().getDisplayMetrics().density <= 1.0f) {
settings.setTextSize(settings.TextSize.NORMAL); WebSettings.setTextSize(WebSettings.TextSize.NORMAL);
} else if (ctx.getResources().getDisplayMetrics().density <= 1.5f) { } else if (ctx.getResources().getDisplayMetrics().density <= 1.5f) {
settings.setTextSize(settings.TextSize.LARGER); WebSettings.setTextSize(WebSettings.TextSize.LARGER);
} else { } else {
settings.setTextSize(settings.TextSize.LARGEST); WebSettings.setTextSize(WebSettings.TextSize.LARGEST);
} }
} }