Merge "Update restricted list prefrences before dialog creation."

This commit is contained in:
TreeHugger Robot
2017-06-12 11:47:11 +00:00
committed by Android (Google) Code Review

View File

@@ -90,6 +90,9 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
// Set ComparisonCallback so we get better animation when list changes.
getPreferenceManager().setPreferenceComparisonCallback(
new PreferenceManager.SimplePreferenceComparisonCallback());
// Upon rotation configuration change we need to update preference states before any
// editing dialog is recreated (that would happen before onResume is called).
updatePreferenceStates();
}
@Override