Open haps87 opened 2 years ago
And the funny part is within OnViewCreated method, the below code works.
final Country userCountryInfo = countryPicker.getCountryFromSIM();
countryCode = userCountryInfo.getDialCode();
imgCountry.setImageResource(userCountryInfo.getFlag());
if (BuildConfig.DEBUG)
Log.e("cSelection-Create", "" + countryCode + " / flag=" + userCountryInfo.getFlag());
And the funny part is within OnViewCreated method, the below code works.
final Country userCountryInfo = countryPicker.getCountryFromSIM(); countryCode = userCountryInfo.getDialCode(); imgCountry.setImageResource(userCountryInfo.getFlag()); if (BuildConfig.DEBUG) Log.e("cSelection-Create", "" + countryCode + " / flag=" + userCountryInfo.getFlag());
I'm using this in activity and it's crashing!!
any update or solution for this?
I had used the below version of the library. implementation 'com.github.mukeshsolanki:country-picker-android:2.0.4'
Here is my applied code.