Skip to content

Commit 0c6f379

Browse files
committed
Day numbers in CalendarView have incorrect size.
1. The text size of the paint for drawing week days was never set. bug:6933206 Change-Id: Ie50286d46e2c21a9c2d5f51b309a49f17d46d4b9
1 parent c1ec220 commit 0c6f379

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/java/android/widget/CalendarView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ public void init(int weekNumber, int selectedWeekDay, int focusedMonth) {
16091609
}
16101610

16111611
/**
1612-
* Initialize the paint isntances.
1612+
* Initialize the paint instances.
16131613
*/
16141614
private void initilaizePaints() {
16151615
mDrawPaint.setFakeBoldText(false);
@@ -1620,6 +1620,7 @@ private void initilaizePaints() {
16201620
mMonthNumDrawPaint.setAntiAlias(true);
16211621
mMonthNumDrawPaint.setStyle(Style.FILL);
16221622
mMonthNumDrawPaint.setTextAlign(Align.CENTER);
1623+
mMonthNumDrawPaint.setTextSize(mDateTextSize);
16231624
}
16241625

16251626
/**

0 commit comments

Comments
 (0)