After clicking the menu button, the remove menu item does not always appears even when there are todo items in the list. I know of two scenarios that cause this problem.
First scenario, multiple dpad clicks makes the app not display the remove item menu. I know changing the following code
Code:
if (event.getAction() == KeyEvent.ACTION_DOWN)
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
to this
Code:
if (event.getAction() == KeyEvent.ACTION_DOWN && addingNew)
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
helps eliminate this scenario.
I am trying to figure out the second scenario that can be reproduce with the following events:
add 2 todo items,
remove one,
try removing the last item - you will see no remove menu item.