diff --git a/android/src/main/java/com/henninghall/date_picker/ui/Wheels.java b/android/src/main/java/com/henninghall/date_picker/ui/Wheels.java index 6b855ca..7c35927 100644 --- a/android/src/main/java/com/henninghall/date_picker/ui/Wheels.java +++ b/android/src/main/java/com/henninghall/date_picker/ui/Wheels.java @@ -57,8 +57,8 @@ public class Wheels { minutesWheel = new MinutesWheel(getPickerWithId(R.id.minutes), state); ampmWheel = new AmPmWheel(getPickerWithId(R.id.ampm), state); hourWheel = new HourWheel(getPickerWithId(R.id.hour), state); - emptyStart = rootView.findViewById(R.id.empty_start); - emptyEnd = rootView.findViewById(R.id.empty_end); + emptyStart = (NumberPickerView) rootView.findViewById(R.id.empty_start); + emptyEnd = (NumberPickerView) rootView.findViewById(R.id.empty_end); wheelPerWheelType = getWheelPerType(); changeAmPmWhenPassingMidnightOrNoon(); }