Show the current date when creating a new event.
Bug: 6460956
Change-Id: I48752c6b133cd05c49e9b418724eb905963d5d8a
diff --git a/src/com/android/contacts/editor/EventFieldEditorView.java b/src/com/android/contacts/editor/EventFieldEditorView.java
index 9c91ff8..94846a0 100644
--- a/src/com/android/contacts/editor/EventFieldEditorView.java
+++ b/src/com/android/contacts/editor/EventFieldEditorView.java
@@ -203,10 +203,10 @@
final int oldYear, oldMonth, oldDay;
if (TextUtils.isEmpty(oldValue)) {
- // Default to January first of this year
+ // Default to the current date
oldYear = defaultYear;
- oldMonth = 0;
- oldDay = 1;
+ oldMonth = calendar.get(Calendar.MONTH);
+ oldDay = calendar.get(Calendar.DAY_OF_MONTH);
} else {
final ParsePosition position = new ParsePosition(0);
// Try parsing with year