Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setInitDate(year, month, day) not work when max year not setted #73

Open
amir14a opened this issue Jul 28, 2021 · 0 comments
Open

setInitDate(year, month, day) not work when max year not setted #73

amir14a opened this issue Jul 28, 2021 · 0 comments
Assignees
Labels

Comments

@amir14a
Copy link

amir14a commented Jul 28, 2021

Hi, setInitDate(year, month, day) not work when max year not setted, we must set max year to use init date:

val picker = PersianDatePickerDialog(this)
            .setPositiveButtonString("باشه")
            .setNegativeButton("بیخیال")
            .setTodayButton("امروز")
            .setTodayButtonVisible(true)
            .setMinYear(1300)
            .setInitDate(1370, 3, 13) //not work
            .setTitleType(PersianDatePickerDialog.WEEKDAY_DAY_MONTH_YEAR)
            .setShowInBottomSheet(true)
            .setListener(object : PersianPickerListener {
                override fun onDateSelected(p: PersianPickerDate) {
                    startDate.value = "${p.persianYear}/${p.persianMonth}/${p.persianDay}"
                }
                override fun onDismissed() {}
            })
        picker.show()
@aliab aliab added the bug label Aug 14, 2021
@aliab aliab self-assigned this Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants