Dependent change caused by refactor of FolderSelectors
b/9174917 Change-Id: I1d644fe52b3b3e0c3428c6007d4c591a87a45e6c
This commit is contained in:
parent
ed6e6cc274
commit
cd4a94b7e1
@ -100,7 +100,7 @@ public class FolderPickerDialog implements OnClickListener, OnMultiChoiceClickLi
|
|||||||
*/
|
*/
|
||||||
public void update(FolderSelectorAdapter.FolderRow row) {
|
public void update(FolderSelectorAdapter.FolderRow row) {
|
||||||
// Update the UI
|
// Update the UI
|
||||||
final boolean add = !row.isPresent();
|
final boolean add = !row.isSelected();
|
||||||
if (!add) {
|
if (!add) {
|
||||||
// This would remove the check on a single radio button, so just
|
// This would remove the check on a single radio button, so just
|
||||||
// return.
|
// return.
|
||||||
@ -111,11 +111,11 @@ public class FolderPickerDialog implements OnClickListener, OnMultiChoiceClickLi
|
|||||||
for (int i = 0; i < mAdapter.getCount(); i++) {
|
for (int i = 0; i < mAdapter.getCount(); i++) {
|
||||||
Object item = mAdapter.getItem(i);
|
Object item = mAdapter.getItem(i);
|
||||||
if (item instanceof FolderRow) {
|
if (item instanceof FolderRow) {
|
||||||
((FolderRow)item).setIsPresent(false);
|
((FolderRow)item).setIsSelected(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mCheckedState.clear();
|
mCheckedState.clear();
|
||||||
row.setIsPresent(add);
|
row.setIsSelected(add);
|
||||||
mAdapter.notifyDataSetChanged();
|
mAdapter.notifyDataSetChanged();
|
||||||
mCheckedState.put(row.getFolder(), add);
|
mCheckedState.put(row.getFolder(), add);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user