Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

SingleDateAndTimePickerDialog crashing like hell #127

Open
xbadal opened this issue Mar 27, 2018 · 0 comments
Open

SingleDateAndTimePickerDialog crashing like hell #127

xbadal opened this issue Mar 27, 2018 · 0 comments

Comments

@xbadal
Copy link

xbadal commented Mar 27, 2018

this is my implementation
private void showDatePickerDialog() { long date = (System.currentTimeMillis()-1000)+(1000*60*60*24*30); new SingleDateAndTimePickerDialog.Builder(this) .bottomSheet() .minutesStep(15) .displayHours(true) .displayMinutes(true) .maxDateRange(new Date(date)) .todayText("today") .mustBeOnFuture() .title("Simple") .listener(new SingleDateAndTimePickerDialog.Listener() { @Override public void onDateSelected(Date date) { Log.d("TAG", "onDateSelected: "+date.getTime()); } }).display(); }

Akhunzaada added a commit to Akhunzaada/SingleDateAndTimePicker that referenced this issue Jul 12, 2018
The crash was caused when today's label was set using todayText() method. The WheelDayPicker was considering the label from resources for today position instead of the custom set label.
Akhunzaada added a commit to Akhunzaada/SingleDateAndTimePicker that referenced this issue Jul 12, 2018
The crash was caused when today's label was set using todayText() method or from xml. The WheelDayPicker was considering the label from resources for today position instead of the custom set label.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant