am cd4a94b7
: Dependent change caused by refactor of FolderSelectors
* commit 'cd4a94b7e1ff89961c422682d562149744dac0e7': Dependent change caused by refactor of FolderSelectors
This commit is contained in:
commit
81ff6fae02
@ -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