Don't append list of accounts every time we return to this screen.
Bug: 5355920
Remove the contents of the layout before adding the accounts.
Change-Id: Ic9256140f892968b2388f47d982eaada720df892
diff --git a/src/com/android/settings/MasterClear.java b/src/com/android/settings/MasterClear.java
index 39b17a9..495f3fd 100644
--- a/src/com/android/settings/MasterClear.java
+++ b/src/com/android/settings/MasterClear.java
@@ -175,6 +175,7 @@
private void loadAccountList() {
View accountsLabel = mContentView.findViewById(R.id.accounts_label);
LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
+ contents.removeAllViews();
Context context = getActivity();