Closed GoogleCodeExporter closed 8 years ago
It looks like the problem lies with listview being set to CHOICE_MODE_MULTIPLE
at ActivityChooseFiltersAndActions.initializeListView(), causing
listview.getCheckedItemPosition() to return -1 during
ACTIVITY_RESULT_ADD_ACTION and in effect, causing the
AdapterRule.addItemToParentPosition() to raise an exception.
This is just a recent change made in r754, which seems to be part of issue 65.
Changing the mode back to CHOICE_MODE_SINGLE solves the problem, but the
purpose of CHOICE_MODE_MULTIPLE is still unclear.
Original comment by renc...@gmail.com
on 18 Jun 2010 at 8:41
Agreed. I have been trying to get Wangchengbin to switch to using multiple for
ActivitySavedRules.java, but maybe he thought I meant this class instead (see
http://codereview.appspot.com/1618041/show). I think you're right though that
ActivityChooseFiltersAndActions should be using SINGLE.
Original comment by case.and...@gmail.com
on 18 Jun 2010 at 9:17
This causes a fault when you try to add actions also.
Original comment by case.and...@gmail.com
on 19 Jun 2010 at 11:29
Code review @ http://codereview.appspot.com/1723045
Checked-in @ r758
Original comment by renc...@gmail.com
on 20 Jun 2010 at 1:22
Original issue reported on code.google.com by
renc...@gmail.com
on 18 Jun 2010 at 8:34Attachments: