diff --git a/app/src/main/java/com/android/calendar/AllInOneActivity.java b/app/src/main/java/com/android/calendar/AllInOneActivity.java index 80a2e87bd..2ffa10d7a 100644 --- a/app/src/main/java/com/android/calendar/AllInOneActivity.java +++ b/app/src/main/java/com/android/calendar/AllInOneActivity.java @@ -935,15 +935,6 @@ public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth selectedTime.setMonth(monthOfYear); selectedTime.setDay(dayOfMonth); - Calendar c = Calendar.getInstance(); - c.set(year, monthOfYear, dayOfMonth); - int weekday = c.get(Calendar.DAY_OF_WEEK); - if (weekday == 1) { - selectedTime.setWeekDay(7); - } else { - selectedTime.setWeekDay(weekday - 1); - } - long extras = CalendarController.EXTRA_GOTO_TIME | CalendarController.EXTRA_GOTO_DATE; mController.sendEvent(this, EventType.GO_TO, selectedTime, null, selectedTime, -1, ViewType.CURRENT, extras, null, null); }