Skip to content

Commit 2be4312

Browse files
committed
Use setSelectedForCountry helper method.
1 parent 1eb33c7 commit 2be4312

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +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-
mSelectedCountryInfo = info;
90-
setText(info.toShortString());
89+
setSelectedForCountry(info.getCountryCode(), info.getLocale());
9190
}
9291

9392
onUnfocus();

0 commit comments

Comments
 (0)