Reduce the number of calls to updateAllPreferences
We call updateAllPreferences in onCreate and onResume. If we always call the method in onResume, the call in onCreate seemed redundant. Bug: 327052480 Flag: EXEMPT low risk bugfix Test: manual (able to see the accessibility screen as before) Test: atest com.android.settings.accessibility Change-Id: I40b44ed6b667f7b1375ec0e339fc2b28a3f70dc5
This commit is contained in:
@@ -210,7 +210,6 @@ public class AccessibilitySettings extends DashboardFragment implements
|
|||||||
public void onCreate(Bundle icicle) {
|
public void onCreate(Bundle icicle) {
|
||||||
super.onCreate(icicle);
|
super.onCreate(icicle);
|
||||||
initializeAllPreferences();
|
initializeAllPreferences();
|
||||||
updateAllPreferences();
|
|
||||||
registerContentMonitors();
|
registerContentMonitors();
|
||||||
registerInputDeviceListener();
|
registerInputDeviceListener();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user