Fix a bug where selected country is reset.

Bug: 29397123

Bug caused by a bad merge.

Change-Id: I6cf4ea8796f712b3d2d9354a9845e9e95eda69b9
This commit is contained in:
Fan Zhang
2016-06-29 09:39:37 -07:00
parent 734c550c59
commit 242a7ef1e8

View File

@@ -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();
} }