Fix a bug where selected country is reset.
Bug: 29397123 Bug caused by a bad merge. Change-Id: I6cf4ea8796f712b3d2d9354a9845e9e95eda69b9
This commit is contained in:
@@ -86,9 +86,10 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
|
|||||||
mHasInternet = true;
|
mHasInternet = true;
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
mSelectedCountry = savedInstanceState.getString(STATE_SELECTED_COUNTRY);
|
mSelectedCountry = savedInstanceState.getString(STATE_SELECTED_COUNTRY);
|
||||||
|
} else {
|
||||||
|
mSelectedCountry = mSupportFeatureProvider.getCurrentCountryCodeIfHasConfig(PHONE);
|
||||||
}
|
}
|
||||||
setAccount(mSupportFeatureProvider.getSupportEligibleAccount(mActivity));
|
setAccount(mSupportFeatureProvider.getSupportEligibleAccount(mActivity));
|
||||||
mSelectedCountry = mSupportFeatureProvider.getCurrentCountryCodeIfHasConfig(PHONE);
|
|
||||||
refreshData();
|
refreshData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user