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:
@@ -51,7 +51,10 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
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"
|
<TextView android:id="@+id/erase_external_option_text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@@ -175,6 +175,7 @@ public class MasterClear extends Fragment {
|
|||||||
private void loadAccountList() {
|
private void loadAccountList() {
|
||||||
View accountsLabel = mContentView.findViewById(R.id.accounts_label);
|
View accountsLabel = mContentView.findViewById(R.id.accounts_label);
|
||||||
LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
|
LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
|
||||||
|
contents.removeAllViews();
|
||||||
|
|
||||||
Context context = getActivity();
|
Context context = getActivity();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user