diff options
author | Scott Kennedy <skennedy@google.com> | 2015-02-28 18:12:39 -0800 |
---|---|---|
committer | Scott Kennedy <skennedy@google.com> | 2015-03-02 11:11:22 -0800 |
commit | a09b3c940e98b8606a16a94b48b6d0121d9d3635 (patch) | |
tree | 4c4c3838cba13dad2ae459197483872ba546a8ee /src/com/android/datetimepicker/time/TimePickerDialog.java | |
parent | 70ca047b61c72f1670d52d16d8d0deb341277f38 (diff) | |
download | datetimepicker-a09b3c940e98b8606a16a94b48b6d0121d9d3635.tar.gz |
Remove the "white" color and use Android's
Change-Id: I3b05f376db201e441759400c6341eb1e53ffbc60
Diffstat (limited to 'src/com/android/datetimepicker/time/TimePickerDialog.java')
-rw-r--r-- | src/com/android/datetimepicker/time/TimePickerDialog.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/datetimepicker/time/TimePickerDialog.java b/src/com/android/datetimepicker/time/TimePickerDialog.java index feb9a8a..c7661ad 100644 --- a/src/com/android/datetimepicker/time/TimePickerDialog.java +++ b/src/com/android/datetimepicker/time/TimePickerDialog.java @@ -201,7 +201,8 @@ public class TimePickerDialog extends DialogFragment implements OnValueSelectedL mMinutePickerDescription = res.getString(R.string.minute_picker_description); mSelectMinutes = res.getString(R.string.select_minutes); mSelectedColor = res.getColor(mThemeDark? R.color.red : R.color.blue); - mUnselectedColor = res.getColor(mThemeDark? R.color.white : R.color.numbers_text_color); + mUnselectedColor = + res.getColor(mThemeDark? android.R.color.white : R.color.numbers_text_color); mHourView = (TextView) view.findViewById(R.id.hours); mHourView.setOnKeyListener(keyboardListener); @@ -314,7 +315,7 @@ public class TimePickerDialog extends DialogFragment implements OnValueSelectedL // Set the theme at the end so that the initialize()s above don't counteract the theme. mTimePicker.setTheme(getActivity().getApplicationContext(), mThemeDark); // Prepare some colors to use. - int white = res.getColor(R.color.white); + int white = res.getColor(android.R.color.white); int circleBackground = res.getColor(R.color.circle_background); int line = res.getColor(R.color.line_background); int timeDisplay = res.getColor(R.color.numbers_text_color); |