Permalink
Browse files

Circle and landscape battery perc inside the icon: use bigger text

  • Loading branch information...
ezio84 authored and xlxfoxxlx committed Nov 22, 2016
1 parent bcc4ed9 commit 496d12a1f3e134f6c1ea7b23ca50c00a6ad56df3
Showing with 12 additions and 1 deletion.
  1. +12 −1 packages/SystemUI/src/com/android/systemui/BatteryMeterDrawable.java
@@ -614,7 +614,18 @@ private void init() {
final float widthDiv2 = mWidth / 2f;
// text size is width / 2 - 2dp for wiggle room
final float textSize = mStyle == 2 ? widthDiv2 - mContext.getResources().getDisplayMetrics().density * 2 : widthDiv2;
final float textSize;
switch(mStyle) {
case 2:
textSize = widthDiv2 - mContext.getResources().getDisplayMetrics().density / 1.3f;
break;
case 5:
textSize = widthDiv2 * 1.3f;
break;
default:
textSize = widthDiv2;
break;
}
mTextAndBoltPaint.setTextSize(textSize);
mWarningTextPaint.setTextSize(textSize);

0 comments on commit 496d12a

Please sign in to comment.