Programming => Operating Systems => Android => Topic started by: Thyphoon on July 10, 2020, 12:11:11 am
Title: jListView.GetCheckedItemPosition always returns -1
Post by: Thyphoon on July 10, 2020, 12:11:11 am
Today I updated lawn and when I compiled a project of mine I noticed that jListView.GetCheckedItemPosition is always returning -1, maybe I has something to do with a recent update?
Title: Re: jListView.GetCheckedItemPosition always returns -1
Post by: jmpessoa on July 10, 2020, 04:12:00 am
Can you do some diff in "jListView.java" for "GetCheckedItemPosition"?
if I compile this with an older version of LAWN, GetCheckedItemPosition returns the checked item position ok.
Title: Re: jListView.GetCheckedItemPosition always returns -1
Post by: Thyphoon on July 15, 2020, 06:45:18 pm
I changed GetCheckedItemPosition for GetItemIndex, I was misusing GetCheckedItemPosition to get the Index of the selected item and Adiv fixed it, sorry.
Title: Re: jListView.GetCheckedItemPosition always returns -1
Post by: jmpessoa on July 15, 2020, 08:42:50 pm