10 Commits

Author SHA1 Message Date
hunterstich
d523523db9 [DatePicker] Fixed incorrect date being selected on scrollable months.
Resolves https://github.com/material-components/material-components-android/issues/1973

PiperOrigin-RevId: 351396382
(cherry picked from commit db42490dde5ee98e5990d5386328012bbaa17090)
2021-01-14 14:27:22 -05:00
Mika
dad7752750 [DatePicker] Fix NullPointerException on MonthAdapter.updateSelectedState(MonthAda…
Resolves https://github.com/material-components/material-components-android/pull/1944
Resolves https://github.com/material-components/material-components-android/issues/1943

GIT_ORIGIN_REV_ID=d02d6307ea08ea505ea6535ce909e7d1b268847b
PiperOrigin-RevId: 350783859

(cherry picked from commit 00e33202a5106785b986e55d6cf3a03a47a23085)
2021-01-14 14:26:08 -05:00
marianomartin
206699f70a [DatePicker] Localized numbers in month
Resolves https://github.com/material-components/material-components-android/issues/1948

PiperOrigin-RevId: 350567674
(cherry picked from commit 3e799428717a8f82b27f753c49f9748175b24121)
2021-01-14 14:22:58 -05:00
dniz
8f455c0b90 [DatePicker] Fixed issue where default selection date would visually stay selected when choosing different date
PiperOrigin-RevId: 334167845
2020-09-28 11:49:51 -07:00
Material Design Team
b12c5c5b00 [DatePicker] Speed up calendar performance by only updating certain views when a day is clicked, instead of recreating and redrawing all of them.
PiperOrigin-RevId: 325850735
2020-08-11 14:39:26 -04:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
raajkumars
2023df01b3 Renamed Month.today() to Month.current() to make it obvious that this method returns the first moment of the current month and not the first moment of the current day.
PiperOrigin-RevId: 310417056
2020-05-08 14:43:12 -04:00
haodong
6694175a5f Fixed getDayCopy utility function in UtcDates for DatePicker.
- was copying year/month/date fields between Calendar objects in different time zones.
- convert input Calendar object into a Calendar object in UTC, then copy year/month/date fields to the return Calendar object.

PiperOrigin-RevId: 284597830
2019-12-10 07:22:59 -05:00
ldjesper
38e01beb1d MaterialDatePicker forces UTC
PiperOrigin-RevId: 267992416
2019-09-12 13:52:21 -04:00
ldjesper
72d54c653c Change picker package to com.google.android.material.datepicker
PiperOrigin-RevId: 267004501
2019-09-04 18:07:59 -04:00