am 16a9b14f: Merge "Don\'t append list of accounts every time we return to this screen."

* commit '16a9b14fa748c742c62f621586244303da4f4d8e':
  Don't append list of accounts every time we return to this screen.
This commit is contained in:
Amith Yamasani
2011-09-22 17:05:41 -07:00
committed by Android Git Automerger
2 changed files with 5 additions and 1 deletions

View File

@@ -51,7 +51,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone" />
android:visibility="gone">
<!-- Do not add any children here as they will be removed in the MasterClear.java
code. A list of accounts will be inserted programmatically. -->
</LinearLayout>
<TextView android:id="@+id/erase_external_option_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"

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();