heysupratim / material-daterange-picker

A material Date Range Picker based on wdullaers MaterialDateTimePicker
Apache License 2.0
1.33k stars 266 forks source link

Implementing OnTimeSetListener throws error to newInstace method #91

Closed rostgoat closed 6 years ago

rostgoat commented 6 years ago

Importing the date picker is fine, but the time picker is giving me issues.

gradle: implementation 'com.borax12.materialdaterangepicker:library:1.9'

implement the interface:

public class ChartsPage extends AppCompatActivity implements DatePickerDialog.OnDateSetListener, com.borax12.materialdaterangepicker.time.TimePickerDialog.OnTimeSetListener {

at this point, I override the methods and create the DatePickerDialog and the TimePickerDialog just like in the docs, except the timePickerDialog complains at the newInstance method with the error:

cannot resolve method newInstace(..)

has anyone had this issue in this specific library?