Skip to content

Commit 71bfc93

Browse files
committed
[DatePicker] Fix bug causing undesired screenshot changes
PiperOrigin-RevId: 746583803
1 parent 39dd3a4 commit 71bfc93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/javatests/com/google/android/material/datepicker/TestBackgroundHighlightDecorator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import android.content.Context;
1919
import android.content.res.ColorStateList;
20+
import android.graphics.Color;
2021
import android.os.Parcel;
2122
import androidx.annotation.ColorInt;
2223
import androidx.annotation.NonNull;
@@ -73,7 +74,7 @@ private int getBackgroundHighlightColor(Context context) {
7374

7475
@ColorInt
7576
private int getTextHighlightColor(Context context) {
76-
return MaterialColors.getColor(context, R.attr.colorOnTertiary, R.attr.colorControlNormal);
77+
return MaterialColors.getColor(context, R.attr.colorOnTertiary, Color.BLACK);
7778
}
7879

7980
@ColorInt

0 commit comments

Comments
 (0)