diff options
| author | 2015-12-18 22:32:58 +0000 | |
|---|---|---|
| committer | 2015-12-18 22:32:58 +0000 | |
| commit | 0b8056c0bccdd931d0238cd479b30fd9ab8cbf10 (patch) | |
| tree | e93901fb915c5a5ffe1b477c405a8b9b8af44f1d | |
| parent | 085caa2bb2b59fa73514337f568f2f9337038ba5 (diff) | |
| parent | 26268f93ce110173ca7e0d904ca877c4b40d1944 (diff) | |
Merge "Fix problem where enter and space key do nothing on ListView."
| -rw-r--r-- | core/java/android/widget/ListView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java index 064808bcbe5f..a11897da3b00 100644 --- a/core/java/android/widget/ListView.java +++ b/core/java/android/widget/ListView.java @@ -2181,7 +2181,7 @@ public class ListView extends AbsListView { boolean handled = false; int action = event.getAction(); if (KeyEvent.isConfirmKey(keyCode) - && event.hasNoModifiers() && action == KeyEvent.ACTION_UP) { + && event.hasNoModifiers() && action != KeyEvent.ACTION_UP) { handled = resurrectSelectionIfNeeded(); if (!handled && event.getRepeatCount() == 0 && getChildCount() > 0) { keyPressed(); |