Skip to content

Commit 267e299

Browse files
committed
Update MaterialDatePicker to read colorSurface from correct context
Fixes issue where colorSurface from materialCalendarTheme is ignored Resolves #838 PiperOrigin-RevId: 286194512 (cherry picked from commit 4e0a016)
1 parent 1a31ddc commit 267e299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/datepicker/MaterialDatePicker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public final Dialog onCreateDialog(@Nullable Bundle bundle) {
164164
fullscreen = isFullscreen(context);
165165
int surfaceColor =
166166
MaterialAttributes.resolveOrThrow(
167-
getContext(), R.attr.colorSurface, MaterialDatePicker.class.getCanonicalName());
167+
context, R.attr.colorSurface, MaterialDatePicker.class.getCanonicalName());
168168
background =
169169
new MaterialShapeDrawable(
170170
context,

0 commit comments

Comments
 (0)