Fixed text size scaling

This commit is contained in:
M66B
2018-12-30 16:17:22 +00:00
parent 31820ec363
commit 1a99188b85
2 changed files with 5 additions and 4 deletions

View File

@@ -189,7 +189,7 @@ public class Helper {
else
ta = context.obtainStyledAttributes(
R.style.TextAppearance_AppCompat_Medium, new int[]{android.R.attr.textSize});
return ta.getDimension(0, 0) / context.getResources().getDisplayMetrics().density;
return ta.getDimension(0, 0);
} finally {
if (ta != null)
ta.recycle();