Work around improper ListView recycling in TrustAgentSettings
Previously, the views for our SwitchPreference would never be recycled because they weren't present in onCreate, which broke accessibility events. Bug: 21837103 Change-Id: I01f40b4e6df6d807b77f985116a57334e4ca4868
This commit is contained in:
@@ -79,6 +79,7 @@ public class TrustAgentSettings extends SettingsPreferenceFragment implements
|
||||
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
removePreference("dummy_preference");
|
||||
updateAgents();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user