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
This commit is contained in:
Amith Yamasani
2011-09-22 14:34:17 -07:00
parent 4cfe105506
commit 3f45de559f
2 changed files with 5 additions and 1 deletions

View File

@@ -175,6 +175,7 @@ public class MasterClear extends Fragment {
private void loadAccountList() {
View accountsLabel = mContentView.findViewById(R.id.accounts_label);
LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
contents.removeAllViews();
Context context = getActivity();