Merge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev
This commit is contained in:
@@ -1644,7 +1644,7 @@ public class GridView extends AbsListView {
|
|||||||
boolean handled = false;
|
boolean handled = false;
|
||||||
int action = event.getAction();
|
int action = event.getAction();
|
||||||
if (KeyEvent.isConfirmKey(keyCode)
|
if (KeyEvent.isConfirmKey(keyCode)
|
||||||
&& event.hasNoModifiers() && action == KeyEvent.ACTION_UP) {
|
&& event.hasNoModifiers() && action != KeyEvent.ACTION_UP) {
|
||||||
handled = resurrectSelectionIfNeeded();
|
handled = resurrectSelectionIfNeeded();
|
||||||
if (!handled && event.getRepeatCount() == 0 && getChildCount() > 0) {
|
if (!handled && event.getRepeatCount() == 0 && getChildCount() > 0) {
|
||||||
keyPressed();
|
keyPressed();
|
||||||
|
|||||||
Reference in New Issue
Block a user