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

Error Callback #186

Closed
hbb20 opened this issue Apr 18, 2018 · 1 comment
Closed

Error Callback #186

hbb20 opened this issue Apr 18, 2018 · 1 comment

Comments

@hbb20
Copy link
Owner

hbb20 commented Apr 18, 2018

@hbb20
ccp.setOnCountryChangeListener(new CountryCodePicker.OnCountryChangeListener() { @OverRide public void onCountrySelected() { Toast.makeText(PhoneNumberOtpActivity.this, "This is from OnCountryChangeListener. \n Country updated to " + ccp.getSelectedCountryName() + "(" + ccp.getSelectedCountryCodeWithPlus() + ")", Toast.LENGTH_SHORT).show(); } });

setOnCountryChangeListener will be called when it's autodetection executed/or failed?

onCountrySelected(Error e) will awesome we are getting error use custom other logic to detect country!

suggested by @LOG-TAG

@hbb20
Copy link
Owner Author

hbb20 commented Apr 20, 2018

@LOG-TAG, CountryChangeListener is already being used by developers and changing it's default behavior is sensitive.

To provide a way to implement what you asked, now version 2.2.0 has new listener FailureListener that should help you listen to failure on country detection. Post back with details if that does not work, we will open the issue if required.

@hbb20 hbb20 closed this as completed Apr 20, 2018
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

1 participant