From cd4a94b7e1ff89961c422682d562149744dac0e7 Mon Sep 17 00:00:00 2001 From: Jin Cao Date: Mon, 19 May 2014 12:41:00 -0700 Subject: [PATCH] Dependent change caused by refactor of FolderSelectors b/9174917 Change-Id: I1d644fe52b3b3e0c3428c6007d4c591a87a45e6c --- src/com/android/email/provider/FolderPickerDialog.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/email/provider/FolderPickerDialog.java b/src/com/android/email/provider/FolderPickerDialog.java index 00d475cc3..059b82cea 100644 --- a/src/com/android/email/provider/FolderPickerDialog.java +++ b/src/com/android/email/provider/FolderPickerDialog.java @@ -100,7 +100,7 @@ public class FolderPickerDialog implements OnClickListener, OnMultiChoiceClickLi */ public void update(FolderSelectorAdapter.FolderRow row) { // Update the UI - final boolean add = !row.isPresent(); + final boolean add = !row.isSelected(); if (!add) { // This would remove the check on a single radio button, so just // return. @@ -111,11 +111,11 @@ public class FolderPickerDialog implements OnClickListener, OnMultiChoiceClickLi for (int i = 0; i < mAdapter.getCount(); i++) { Object item = mAdapter.getItem(i); if (item instanceof FolderRow) { - ((FolderRow)item).setIsPresent(false); + ((FolderRow)item).setIsSelected(false); } } mCheckedState.clear(); - row.setIsPresent(add); + row.setIsSelected(add); mAdapter.notifyDataSetChanged(); mCheckedState.put(row.getFolder(), add);