Skip to content

Commit e48fcfd

Browse files
committed
Scale entropy dialog text with display density
Fixes vx#82.
1 parent fd84416 commit e48fcfd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88
- EC key operations would fail on some devices.
99
- Connecting to a host from the host list no longer asks which
1010
app you want to use.
11+
- The text in the entropy gathering dialog is now scaled correctly.
1112

1213
## [1.8.4][1.8.4] - 2015-04-19
1314
### Fixed

src/org/connectbot/util/EntropyView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private void setUpEntropy() {
6666
mPaint.setAntiAlias(true);
6767
mPaint.setTypeface(Typeface.DEFAULT);
6868
mPaint.setTextAlign(Paint.Align.CENTER);
69-
mPaint.setTextSize(16);
69+
mPaint.setTextSize(16f * getResources().getDisplayMetrics().density);
7070
mPaint.setColor(Color.WHITE);
7171
mFontMetrics = mPaint.getFontMetrics();
7272

0 commit comments

Comments
 (0)