Merge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev

This commit is contained in:
Yigit Boyar
2016-03-16 20:27:20 +00:00
committed by Android (Google) Code Review

View File

@@ -1644,7 +1644,7 @@ public class GridView 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();