12 Commits

Author SHA1 Message Date
pfthomas
86a3b35aa2 [DatePicker] Prevent empty views at the end of a month to receive key events
PiperOrigin-RevId: 640991014
2024-06-11 18:55:24 +00:00
Material Design Team
cfc00aa5a3 Update android core class definitions across material
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
conradchen
281688a2f2 [DatePicker] Fix DatePicker crashes and and potential issue of range selection
GridView used to display days in months can be scrolled when there are more rows
than the space can contain. Usually this happens when a month spans over 6 rows. In this case, the position of the day in a month will not be the same as its corresponding view position in the grid view. This can cause:

1. Wrong day view being highlighted.
2. Crashes due to out-of-bound index. (The day position can be larger than view
   counts due to invisible days.)

PiperOrigin-RevId: 379382943
2021-06-15 21:56:07 -07:00
Material Design Team
ffcf70adde [DatePicker] Changes to allow the MaterialCalendar to exist inside a scrollable view.
PiperOrigin-RevId: 336952059
2020-10-15 13:23:12 -07:00
Gabriele Mariotti
ea763862b4 [MaterialDatePicker] Fixed the filled range with RTL layout
Resolves https://github.com/material-components/material-components-android/pull/1731

GIT_ORIGIN_REV_ID=6be1c14b2f4a93d180ffe1f760cec5f277f03613
PiperOrigin-RevId: 332245028
2020-09-17 11:10:37 -07:00
Material Design Team
fb23efff45 [DatePicker] Allow RangedDateSelectors with multiples ranges in different months to be shown correctly.
PiperOrigin-RevId: 326054201
2020-08-11 14:46:48 -04:00
marianomartin
811d45216b [DatePicker] Fixed crash when GridView has not rendered the last child
Resovles https://github.com/material-components/material-components-android/issues/1338

PiperOrigin-RevId: 318811845
2020-06-29 16:16:37 -04:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -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