Merge "Speed up dev options"

This commit is contained in:
Jeffrey Huang
2017-11-15 18:01:07 +00:00
committed by Android (Google) Code Review
4 changed files with 24 additions and 12 deletions

View File

@@ -87,9 +87,11 @@ 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();
if (icicle != null) {
// 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