waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

XE17: Periodically, ListView.getSelectedItemPosition() returns INVALID_POSITION and listView.setSelection() silently fails #507

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable Debug Mode
2. Reboot Glass
3. Open an Immersion with a ListView
4a. Observe that a set AdapterView.OnItemSelectedListener.onItemSelected() and 
onNothingSelected() is never called
4b. Observe that getSelectedItemPosition() always returns INVALID_POSITION
4c. Call setSelection() on the ListView and observe that a set 
AdapterView.OnItemSelectedListener.onItemSelected() is not called and 
getSelectedItemPosition() still returns INVALID_POSITION
4d. Call setEnabled(true) and/or setSelected(true) and observe the same
4e. Observe that while no child view becomes selected, the ListView will still 
scroll as if an item were successfully selected.
5. Disable Debug Mode
6. Enable Debug Mode
7. Repeat steps 4a to 4d and observe correct behavior.

What version of the product are you using? On what operating system?
Glass v2 running XE17. Development computer is late 2009 MacBook Pro 17" 
running OSX Mavericks.

Original issue reported on code.google.com by MagiKa...@gmail.com on 7 May 2014 at 11:35

GoogleCodeExporter commented 9 years ago
I have the same problem!

Original comment by cjl0...@vt.edu on 10 May 2014 at 2:55