Skip to content

Commit a263a8a

Browse files
authored
Merge pull request #2025 from firebase/fix-2005
fix: Set selected country spinner
2 parents 0960234 + 2be4312 commit a263a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/ui/phone/CountryListSpinner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public CountryListSpinner(Context context, AttributeSet attrs, int defStyle) {
8686
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
8787
CountryInfo info = mCountryListAdapter.getItem(position);
8888
if (info != null) {
89-
setText(info.toShortString());
89+
setSelectedForCountry(info.getCountryCode(), info.getLocale());
9090
}
9191

9292
onUnfocus();

0 commit comments

Comments
 (0)