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

Can i pick country and city without state? #6

Open
london-tokyo opened this issue Jan 20, 2020 · 1 comment
Open

Can i pick country and city without state? #6

london-tokyo opened this issue Jan 20, 2020 · 1 comment

Comments

@london-tokyo
Copy link

When i tap to "Pick country" (for example) i call - countryPicker?.showDialog(supportFragmentManager)
Than i tap to "Pick city" (for example) i call:
cityPicker?.showDialog(supportFragmentManager)

And i have this issue: java.lang.IllegalArgumentException: No Cities Found! Did you call build()

This is my onCreate{
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
countryPicker = CountryPicker.Builder().with(this).listener(this).build()
cityPicker = CityPicker.Builder().with(this).listener(this).build()
}

@vikktorn
Copy link
Owner

vikktorn commented Jan 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants