You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes FastScroller.java crashes app. It will be better to check the length of filteredCountries before get CCPCountry in this line
CCPCountry ccpCountry = filteredCountries.get(position); (202 line of CountryCodeAdapter class)
For example like this:
public String getSectionTitle(int position) {
if (preferredCountriesCount > position) {
return "★";
} else if (filteredCountries.size() > position) {
return filteredCountries.get(position).getName().substring(0, 1);
} else {
return ""; //this should never be the case but it does
}
}
The text was updated successfully, but these errors were encountered:
Sometimes
FastScroller.java
crashes app. It will be better to check the length offilteredCountries
before getCCPCountry
in this lineCCPCountry ccpCountry = filteredCountries.get(position);
(202 line ofCountryCodeAdapter
class)For example like this:
The text was updated successfully, but these errors were encountered: