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

Commit bde5b99a authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9077065 from 6e7058b2 to udc-release

Change-Id: I03ad29c67b800a95e5c9795f53420dc898a56fc5
parents 782f92f5 6e7058b2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1484,6 +1484,11 @@ public class QuickContactActivity extends ContactsActivity {
            final String dataString = event.buildDataStringForDisplay(context, kind);
            final Calendar cal = DateUtils.parseDate(dataString, false);
            if (cal != null) {
                final int eventType = event.getContentValues().getAsInteger(Event.TYPE);
                if (eventType == Event.TYPE_ANNIVERSARY || eventType == Event.TYPE_BIRTHDAY) {
                    // setting the year to 0 makes a click open the coming birthday
                    cal.set(Calendar.YEAR, 0);
                }
                final Date nextAnniversary =
                        DateUtils.getNextAnnualDate(cal);
                final Uri.Builder builder = CalendarContract.CONTENT_URI.buildUpon();