Merge "Don't cancel gesture trail update drawing" into jb-mr1-dev
commit
1c820c4146
|
@ -781,9 +781,6 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
|
||||||
|
|
||||||
public void cancelAllMessages() {
|
public void cancelAllMessages() {
|
||||||
mDrawingHandler.cancelAllMessages();
|
mDrawingHandler.cancelAllMessages();
|
||||||
if (mPreviewPlacerView != null) {
|
|
||||||
mPreviewPlacerView.cancelAllMessages();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private TextView getKeyPreviewText(final int pointerId) {
|
private TextView getKeyPreviewText(final int pointerId) {
|
||||||
|
|
|
@ -101,29 +101,17 @@ public class PreviewPlacerView extends RelativeLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cancelDismissGestureFloatingPreviewText() {
|
|
||||||
removeMessages(MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void dismissGestureFloatingPreviewText() {
|
public void dismissGestureFloatingPreviewText() {
|
||||||
cancelDismissGestureFloatingPreviewText();
|
removeMessages(MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT);
|
||||||
sendMessageDelayed(obtainMessage(MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT),
|
sendMessageDelayed(obtainMessage(MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT),
|
||||||
mGestureFloatingPreviewTextLingerTimeout);
|
mGestureFloatingPreviewTextLingerTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cancelUpdateGestureTrailPreview() {
|
|
||||||
removeMessages(MSG_UPDATE_GESTURE_PREVIEW_TRAIL);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void postUpdateGestureTrailPreview() {
|
public void postUpdateGestureTrailPreview() {
|
||||||
cancelUpdateGestureTrailPreview();
|
removeMessages(MSG_UPDATE_GESTURE_PREVIEW_TRAIL);
|
||||||
sendMessageDelayed(obtainMessage(MSG_UPDATE_GESTURE_PREVIEW_TRAIL),
|
sendMessageDelayed(obtainMessage(MSG_UPDATE_GESTURE_PREVIEW_TRAIL),
|
||||||
mGesturePreviewTrailParams.mUpdateInterval);
|
mGesturePreviewTrailParams.mUpdateInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancelAllMessages() {
|
|
||||||
cancelUpdateGestureTrailPreview();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PreviewPlacerView(final Context context, final AttributeSet attrs) {
|
public PreviewPlacerView(final Context context, final AttributeSet attrs) {
|
||||||
|
@ -278,10 +266,6 @@ public class PreviewPlacerView extends RelativeLayout {
|
||||||
mDrawingHandler.dismissGestureFloatingPreviewText();
|
mDrawingHandler.dismissGestureFloatingPreviewText();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancelAllMessages() {
|
|
||||||
mDrawingHandler.cancelAllMessages();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void drawGestureFloatingPreviewText(final Canvas canvas,
|
private void drawGestureFloatingPreviewText(final Canvas canvas,
|
||||||
final String gestureFloatingPreviewText) {
|
final String gestureFloatingPreviewText) {
|
||||||
if (TextUtils.isEmpty(gestureFloatingPreviewText)) {
|
if (TextUtils.isEmpty(gestureFloatingPreviewText)) {
|
||||||
|
|
Loading…
Reference in New Issue