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

Commit e8e55726 authored by Michael Chan's avatar Michael Chan
Browse files

Remove time zone from all day events (which have no time zones)

Bug: 6578189
Change-Id: I5d006bf90de113ea5bb66ee01b0950d8bc323577
parent 36621b46
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1156,16 +1156,18 @@ public class EventInfoFragment extends DialogFragment implements OnCheckedChange
        Resources resources = context.getResources();
        String displayedDatetime = Utils.getDisplayedDatetime(mStartMillis, mEndMillis,
                System.currentTimeMillis(), localTimezone, mAllDay, context);
        String displayedTimezone = Utils.getDisplayedTimezone(mStartMillis, localTimezone,

        String displayedTimezone = null;
        if (!mAllDay) {
            displayedTimezone = Utils.getDisplayedTimezone(mStartMillis, localTimezone,
                    eventTimezone);
        int timezoneIndex = displayedDatetime.length();
        if (displayedTimezone != null) {
            displayedDatetime += "  " + displayedTimezone;
        }
        // Display the datetime.  Make the timezone (if any) transparent.
        if (displayedTimezone == null) {
            setTextCommon(view, R.id.when_datetime, displayedDatetime);
        } else {
            int timezoneIndex = displayedDatetime.length();
            displayedDatetime += "  " + displayedTimezone;
            SpannableStringBuilder sb = new SpannableStringBuilder(displayedDatetime);
            ForegroundColorSpan transparentColorSpan = new ForegroundColorSpan(
                    resources.getColor(R.color.event_info_headline_transparent_color));