Merge "Remove getTimer() reference except from PointerTracker"

This commit is contained in:
Tadashi G. Takaoka 2013-08-01 07:53:44 +00:00 committed by Android (Google) Code Review
commit a299421f67
2 changed files with 15 additions and 3 deletions

View file

@ -273,7 +273,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
public void startDoubleTapShiftKeyTimer() {
final MainKeyboardView keyboardView = getMainKeyboardView();
if (keyboardView != null) {
keyboardView.getTimerProxy().startDoubleTapShiftKeyTimer();
keyboardView.startDoubleTapShiftKeyTimer();
}
}
@ -282,7 +282,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
public void cancelDoubleTapShiftKeyTimer() {
final MainKeyboardView keyboardView = getMainKeyboardView();
if (keyboardView != null) {
keyboardView.getTimerProxy().cancelDoubleTapShiftKeyTimer();
keyboardView.cancelDoubleTapShiftKeyTimer();
}
}
@ -290,7 +290,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
@Override
public boolean isInDoubleTapShiftKeyTimeout() {
final MainKeyboardView keyboardView = getMainKeyboardView();
return keyboardView != null && keyboardView.getTimerProxy().isInDoubleTapShiftKeyTimeout();
return keyboardView != null && keyboardView.isInDoubleTapShiftKeyTimeout();
}
/**

View file

@ -1007,6 +1007,18 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
}
}
public void startDoubleTapShiftKeyTimer() {
mKeyTimerHandler.startDoubleTapShiftKeyTimer();
}
public void cancelDoubleTapShiftKeyTimer() {
mKeyTimerHandler.cancelDoubleTapShiftKeyTimer();
}
public boolean isInDoubleTapShiftKeyTimeout() {
return mKeyTimerHandler.isInDoubleTapShiftKeyTimeout();
}
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
if (AccessibilityUtils.getInstance().isTouchExplorationEnabled()) {