Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38b8d19e authored by kaiyiz's avatar kaiyiz Committed by Jochen Sprickerhof
Browse files

Calendar: Fix the issue of Calendar

Set the time for t1 but not for t.

CRs-fixed: 530201

Change-Id: I9d6cebf11e3e42672c07466dbb737464fbf18daf
parent 4cc132fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ public class CalendarViewAdapter extends BaseAdapter {

        // If week start and end is in 2 different months, use short months names
        Time t1 = new Time(mTimeZone);
        t.set(weekEndTime);
        t1.set(weekEndTime);
        int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NO_YEAR;
        if (t.month != t1.month) {
            flags |= DateUtils.FORMAT_ABBREV_MONTH;