am d192dd94: am 84ac8f31: Move empty listner to KeyboardActionListener.Adapter

* commit 'd192dd94ebfb08a6e432c0083ba74a5ea86dd7b1':
  Move empty listner to KeyboardActionListener.Adapter
main
Tadashi G. Takaoka 2013-05-15 12:46:38 -07:00 committed by Android Git Automerger
commit 710a12e36c
2 changed files with 3 additions and 5 deletions

View File

@ -94,6 +94,8 @@ public interface KeyboardActionListener {
public boolean onCustomRequest(int requestCode);
public static class Adapter implements KeyboardActionListener {
public static final Adapter EMPTY_LISTENER = new Adapter();
@Override
public void onPressKey(int primaryCode) {}
@Override

View File

@ -176,7 +176,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
private DrawingProxy mDrawingProxy;
private TimerProxy mTimerProxy;
private KeyDetector mKeyDetector;
private KeyboardActionListener mListener = EMPTY_LISTENER;
private KeyboardActionListener mListener = KeyboardActionListener.Adapter.EMPTY_LISTENER;
private Keyboard mKeyboard;
private int mPhantonSuddenMoveThreshold;
@ -333,10 +333,6 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
// true if a sliding key input is allowed.
private boolean mIsAllowedSlidingKeyInput;
// Empty {@link KeyboardActionListener}
private static final KeyboardActionListener EMPTY_LISTENER =
new KeyboardActionListener.Adapter();
private final GestureStrokeWithPreviewPoints mGestureStrokeWithPreviewPoints;
public static void init(final boolean needsPhantomSuddenMoveEventHack) {