From e48fcfd18fb8108e97bb3e116459b549bc0d2d4e Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Tue, 9 Jun 2015 19:16:05 -0700 Subject: Scale entropy dialog text with display density Fixes #82. --- CHANGELOG.md | 1 + src/org/connectbot/util/EntropyView.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b3fe19..bcacd87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - EC key operations would fail on some devices. - Connecting to a host from the host list no longer asks which app you want to use. +- The text in the entropy gathering dialog is now scaled correctly. ## [1.8.4][1.8.4] - 2015-04-19 ### Fixed diff --git a/src/org/connectbot/util/EntropyView.java b/src/org/connectbot/util/EntropyView.java index c988673..1c6b352 100644 --- a/src/org/connectbot/util/EntropyView.java +++ b/src/org/connectbot/util/EntropyView.java @@ -66,7 +66,7 @@ public class EntropyView extends View { mPaint.setAntiAlias(true); mPaint.setTypeface(Typeface.DEFAULT); mPaint.setTextAlign(Paint.Align.CENTER); - mPaint.setTextSize(16); + mPaint.setTextSize(16f * getResources().getDisplayMetrics().density); mPaint.setColor(Color.WHITE); mFontMetrics = mPaint.getFontMetrics(); -- cgit v1.2.3