From 08a0e039f22507d441c575dda60a433baa8c8f8f Mon Sep 17 00:00:00 2001 From: Henning Hall Date: Sun, 18 Oct 2020 19:36:48 +0200 Subject: [PATCH] fix android compilation issues below sdk 26 --- .../src/main/java/com/henninghall/date_picker/ui/Wheels.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }