diff --git a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTimePickerDialog.java b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTimePickerDialog.java index 4a4c874d255..0c06e8927c6 100644 --- a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTimePickerDialog.java +++ b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTimePickerDialog.java @@ -3,13 +3,9 @@ import static org.robolectric.util.reflector.Reflector.reflector; import android.app.TimePickerDialog; -import android.content.Context; import android.widget.TimePicker; -import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; import org.robolectric.annotation.RealObject; -import org.robolectric.shadow.api.Shadow; -import org.robolectric.util.ReflectionHelpers.ClassParameter; import org.robolectric.util.reflector.Accessor; import org.robolectric.util.reflector.ForType; @@ -18,24 +14,6 @@ public class ShadowTimePickerDialog extends ShadowAlertDialog { @RealObject protected TimePickerDialog realTimePickerDialog; - @Implementation - protected void __constructor__( - Context context, - int theme, - TimePickerDialog.OnTimeSetListener callBack, - int hourOfDay, - int minute, - boolean is24HourView) { - - Shadow.invokeConstructor(TimePickerDialog.class, realTimePickerDialog, - ClassParameter.from(Context.class, context), - ClassParameter.from(int.class, theme), - ClassParameter.from(TimePickerDialog.OnTimeSetListener.class, callBack), - ClassParameter.from(int.class, hourOfDay), - ClassParameter.from(int.class, minute), - ClassParameter.from(boolean.class, is24HourView)); - } - public int getHourOfDay() { return reflector(TimePickerDialogProvider.class, realTimePickerDialog) .getTimePicker()