diff options
| author | Kenny Root <kenny@the-b.org> | 2015-06-09 19:16:05 -0700 | 
|---|---|---|
| committer | Kenny Root <kenny@the-b.org> | 2015-06-09 19:17:59 -0700 | 
| commit | e48fcfd18fb8108e97bb3e116459b549bc0d2d4e (patch) | |
| tree | cd247f502e95e69b9ca29b0efffc1a08bd6d8a7c | |
| parent | fd8441639d82359677dabb9d5fadda8f124551d5 (diff) | |
| download | connectbot-e48fcfd18fb8108e97bb3e116459b549bc0d2d4e.tar.gz connectbot-e48fcfd18fb8108e97bb3e116459b549bc0d2d4e.tar.bz2 connectbot-e48fcfd18fb8108e97bb3e116459b549bc0d2d4e.zip | |
Scale entropy dialog text with display density
Fixes #82.
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | src/org/connectbot/util/EntropyView.java | 2 | 
2 files changed, 2 insertions, 1 deletions
| 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(); | 
