Skip to content

Commit

Permalink
Fix for default text size being set in PX instead of DP
Browse files Browse the repository at this point in the history
The default text size in ComponentBase was defined as 10 pixels
instead of 10dp, which causes tiny text and does not reflect
the javadoc and the general behavior of setTextSize(...)
  • Loading branch information
Patrick Ivarsson authored and plackemacher committed Mar 1, 2017
1 parent ec7791e commit 5954643
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public abstract class ComponentBase {
/**
* the text size of the labels
*/
protected float mTextSize = 10f;
protected float mTextSize = Utils.convertDpToPixel(10f);

/**
* the text color to use for the labels
Expand Down

0 comments on commit 5954643

Please sign in to comment.