am e14151f9: am 5023c89d: am a029671b: Merge "Work around improper ListView recycling in TrustAgentSettings" into mnc-dev

* commit 'e14151f9c9761d4ccecb9fc677f7b291d287d8e0':
  Work around improper ListView recycling in TrustAgentSettings
This commit is contained in:
Adrian Roos
2015-06-20 05:44:35 +00:00
committed by Android Git Automerger
2 changed files with 7 additions and 1 deletions

View File

@@ -16,4 +16,9 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="trust_agents"
android:title="@string/manage_trust_agents" />
android:title="@string/manage_trust_agents">
<!-- Needed so PreferenceGroupAdapter allows SwitchPreference to be
recycled. Removed in onResume -->
<SwitchPreference android:key="dummy_preference" />
</PreferenceScreen>

View File

@@ -79,6 +79,7 @@ public class TrustAgentSettings extends SettingsPreferenceFragment implements
public void onResume() {
super.onResume();
removePreference("dummy_preference");
updateAgents();
};