Closed rajam1215 closed 7 years ago
You must use newIntent()
to create intent to launch DateTimeRangePickerActivity
like in https://github.com/skedgo/DateTimeRangePicker#usage.
Hi Rajam,
Put the below check in DateTimeRangePickerActivity
if (intent.extras != null) viewModel.handleArgs(intent.extras)
and after then put the below code in DateTimeRangePickerViewModel
internal var timeZone: TimeZone? = TimeZone.getTimeZone(KEY_TIME_ZONE)
Ok, Very Thanks
Caused by: java.lang.IllegalStateException: intent.extras must not be null at skedgo.datetimerangepicker.DateTimeRangePickerActivity.onCreate(DateTimeRangePickerActivity.kt:47)
This Error come When we use Intent in MainActivity java class for go in DateTimeRangePickerActivity kotlin class