Speed up dev options
- Put memory updates on background thread - Prevent update state from being called twice Bug: 69000975 Test: Manual Change-Id: I186bc25f6b74a5098b1737891efee3a6855dc996
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user