Merge "Remove getTimer() reference except from PointerTracker"
This commit is contained in:
commit
a299421f67
2 changed files with 15 additions and 3 deletions
|
@ -273,7 +273,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
||||||
public void startDoubleTapShiftKeyTimer() {
|
public void startDoubleTapShiftKeyTimer() {
|
||||||
final MainKeyboardView keyboardView = getMainKeyboardView();
|
final MainKeyboardView keyboardView = getMainKeyboardView();
|
||||||
if (keyboardView != null) {
|
if (keyboardView != null) {
|
||||||
keyboardView.getTimerProxy().startDoubleTapShiftKeyTimer();
|
keyboardView.startDoubleTapShiftKeyTimer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
||||||
public void cancelDoubleTapShiftKeyTimer() {
|
public void cancelDoubleTapShiftKeyTimer() {
|
||||||
final MainKeyboardView keyboardView = getMainKeyboardView();
|
final MainKeyboardView keyboardView = getMainKeyboardView();
|
||||||
if (keyboardView != null) {
|
if (keyboardView != null) {
|
||||||
keyboardView.getTimerProxy().cancelDoubleTapShiftKeyTimer();
|
keyboardView.cancelDoubleTapShiftKeyTimer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
|
||||||
@Override
|
@Override
|
||||||
public boolean isInDoubleTapShiftKeyTimeout() {
|
public boolean isInDoubleTapShiftKeyTimeout() {
|
||||||
final MainKeyboardView keyboardView = getMainKeyboardView();
|
final MainKeyboardView keyboardView = getMainKeyboardView();
|
||||||
return keyboardView != null && keyboardView.getTimerProxy().isInDoubleTapShiftKeyTimeout();
|
return keyboardView != null && keyboardView.isInDoubleTapShiftKeyTimeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
@Override
|
||||||
public boolean dispatchTouchEvent(MotionEvent event) {
|
public boolean dispatchTouchEvent(MotionEvent event) {
|
||||||
if (AccessibilityUtils.getInstance().isTouchExplorationEnabled()) {
|
if (AccessibilityUtils.getInstance().isTouchExplorationEnabled()) {
|
||||||
|
|
Loading…
Reference in a new issue