Restore selected country when rotating screen.
Bug: 29105266 Change-Id: I5c070a40465b32b4989481f270c448ba48f0e865
This commit is contained in:
@@ -88,8 +88,8 @@ public final class SupportFragment extends InstrumentedFragment implements View.
|
||||
mAccountManager = AccountManager.get(mActivity);
|
||||
mSupportFeatureProvider =
|
||||
FeatureFactory.getFactory(mActivity).getSupportFeatureProvider(mActivity);
|
||||
mSupportItemAdapter = new SupportItemAdapter(mActivity, mSupportFeatureProvider,
|
||||
this /* itemClickListener */);
|
||||
mSupportItemAdapter = new SupportItemAdapter(mActivity, savedInstanceState,
|
||||
mSupportFeatureProvider, this /* itemClickListener */);
|
||||
mConnectivityManager =
|
||||
(ConnectivityManager) mActivity.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
}
|
||||
@@ -129,6 +129,12 @@ public final class SupportFragment extends InstrumentedFragment implements View.
|
||||
mConnectivityManager.unregisterNetworkCallback(mNetworkCallback);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
mSupportItemAdapter.onSaveInstanceState(outState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAccountsUpdated(Account[] accounts) {
|
||||
// Account changed, update support items.
|
||||
|
Reference in New Issue
Block a user