correct fontScale
This commit is contained in:
parent
31e8f9fe78
commit
8b1b93508a
2 changed files with 6 additions and 6 deletions
|
@ -379,13 +379,13 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
settings.setTextZoom((int) (scale * 100f));
|
settings.setTextZoom((int) (scale * 100f));
|
||||||
} else {
|
} else {
|
||||||
if (scale <= 0.5f) {
|
if (scale <= 0.7f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.SMALLEST);
|
settings.setTextSize(WebSettings.TextSize.SMALLEST);
|
||||||
} else if (scale <= 0.75f) {
|
} else if (scale <= 0.85f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.SMALLER);
|
settings.setTextSize(WebSettings.TextSize.SMALLER);
|
||||||
} else if (scale <= 1.0f) {
|
} else if (scale <= 1.0f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.NORMAL);
|
settings.setTextSize(WebSettings.TextSize.NORMAL);
|
||||||
} else if (scale <= 1.5f) {
|
} else if (scale <= 1.15f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.LARGER);
|
settings.setTextSize(WebSettings.TextSize.LARGER);
|
||||||
} else {
|
} else {
|
||||||
settings.setTextSize(WebSettings.TextSize.LARGEST);
|
settings.setTextSize(WebSettings.TextSize.LARGEST);
|
||||||
|
|
|
@ -114,13 +114,13 @@ public class ContextMenuHelper {
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
if (android.os.Build.VERSION.SDK_INT >= 14) {
|
||||||
settings.setTextZoom((int) (scale * 100f));
|
settings.setTextZoom((int) (scale * 100f));
|
||||||
} else {
|
} else {
|
||||||
if (scale <= 0.5f) {
|
if (scale <= 0.7f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.SMALLEST);
|
settings.setTextSize(WebSettings.TextSize.SMALLEST);
|
||||||
} else if (scale <= 0.75f) {
|
} else if (scale <= 0.85f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.SMALLER);
|
settings.setTextSize(WebSettings.TextSize.SMALLER);
|
||||||
} else if (scale <= 1.0f) {
|
} else if (scale <= 1.0f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.NORMAL);
|
settings.setTextSize(WebSettings.TextSize.NORMAL);
|
||||||
} else if (scale <= 1.5f) {
|
} else if (scale <= 1.15f) {
|
||||||
settings.setTextSize(WebSettings.TextSize.LARGER);
|
settings.setTextSize(WebSettings.TextSize.LARGER);
|
||||||
} else {
|
} else {
|
||||||
settings.setTextSize(WebSettings.TextSize.LARGEST);
|
settings.setTextSize(WebSettings.TextSize.LARGEST);
|
||||||
|
|
Loading…
Reference in a new issue