fix build
This commit is contained in:
parent
e2ec0347ac
commit
2cfaaac9a9
2 changed files with 10 additions and 10 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue