Loading core/java/android/widget/ListPopupWindow.java +9 −7 Original line number Diff line number Diff line Loading @@ -885,6 +885,7 @@ public class ListPopupWindow implements ShowableListMenu { * @return true if the event was handled, false if it was ignored. * * @see #setModal(boolean) * @see #onKeyUp(int, KeyEvent) */ public boolean onKeyDown(int keyCode, @NonNull KeyEvent event) { // when the drop down is shown, we drive it directly Loading Loading @@ -972,7 +973,7 @@ public class ListPopupWindow implements ShowableListMenu { } /** * Filter key down events. By forwarding key up events to this function, * Filter key up events. By forwarding key up events to this function, * views using non-modal ListPopupWindow can have it handle key selection of items. * * @param keyCode keyCode param passed to the host view's onKeyUp Loading @@ -980,6 +981,7 @@ public class ListPopupWindow implements ShowableListMenu { * @return true if the event was handled, false if it was ignored. * * @see #setModal(boolean) * @see #onKeyDown(int, KeyEvent) */ public boolean onKeyUp(int keyCode, @NonNull KeyEvent event) { if (isShowing() && mDropDownList.getSelectedItemPosition() >= 0) { Loading Loading
core/java/android/widget/ListPopupWindow.java +9 −7 Original line number Diff line number Diff line Loading @@ -885,6 +885,7 @@ public class ListPopupWindow implements ShowableListMenu { * @return true if the event was handled, false if it was ignored. * * @see #setModal(boolean) * @see #onKeyUp(int, KeyEvent) */ public boolean onKeyDown(int keyCode, @NonNull KeyEvent event) { // when the drop down is shown, we drive it directly Loading Loading @@ -972,7 +973,7 @@ public class ListPopupWindow implements ShowableListMenu { } /** * Filter key down events. By forwarding key up events to this function, * Filter key up events. By forwarding key up events to this function, * views using non-modal ListPopupWindow can have it handle key selection of items. * * @param keyCode keyCode param passed to the host view's onKeyUp Loading @@ -980,6 +981,7 @@ public class ListPopupWindow implements ShowableListMenu { * @return true if the event was handled, false if it was ignored. * * @see #setModal(boolean) * @see #onKeyDown(int, KeyEvent) */ public boolean onKeyUp(int keyCode, @NonNull KeyEvent event) { if (isShowing() && mDropDownList.getSelectedItemPosition() >= 0) { Loading