From 2ecbfe8e93f8d8fce0adc47659b5d2f52cb68849 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 21 Jan 2013 17:00:47 +0900 Subject: [PATCH] Rename AbstractDrawingPreview.onDraw to drawPreview This is because the android lint warns calling a method onDraw(Canvas) from View.onDraw(Canvas). Change-Id: I4f54996da5454d9a8c4ef43fbbcaec37724fb20e --- .../inputmethod/keyboard/internal/AbstractDrawingPreview.java | 2 +- .../keyboard/internal/GestureFloatingPreviewText.java | 2 +- .../inputmethod/keyboard/internal/PreviewPlacerView.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/internal/AbstractDrawingPreview.java b/java/src/com/android/inputmethod/keyboard/internal/AbstractDrawingPreview.java index 8a3f0645f..501bde006 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/AbstractDrawingPreview.java +++ b/java/src/com/android/inputmethod/keyboard/internal/AbstractDrawingPreview.java @@ -39,7 +39,7 @@ public abstract class AbstractDrawingPreview { * Draws the preview * @param canvas The canvas where the preview is drawn. */ - public abstract void onDraw(final Canvas canvas); + public abstract void drawPreview(final Canvas canvas); /** * Set the position of the preview. diff --git a/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingPreviewText.java b/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingPreviewText.java index 897d856c8..2c5bb598d 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingPreviewText.java +++ b/java/src/com/android/inputmethod/keyboard/internal/GestureFloatingPreviewText.java @@ -130,7 +130,7 @@ public class GestureFloatingPreviewText extends AbstractDrawingPreview { * @param canvas The canvas where preview text is drawn. */ @Override - public void onDraw(final Canvas canvas) { + public void drawPreview(final Canvas canvas) { if (!isPreviewEnabled() || mSuggestedWords.isEmpty() || TextUtils.isEmpty(mSuggestedWords.getWord(0))) { return; diff --git a/java/src/com/android/inputmethod/keyboard/internal/PreviewPlacerView.java b/java/src/com/android/inputmethod/keyboard/internal/PreviewPlacerView.java index 4471cd0fe..d34474227 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/PreviewPlacerView.java +++ b/java/src/com/android/inputmethod/keyboard/internal/PreviewPlacerView.java @@ -220,7 +220,7 @@ public final class PreviewPlacerView extends RelativeLayout { // rectangle on the canvas. } } - mGestureFloatingPreviewText.onDraw(canvas); + mGestureFloatingPreviewText.drawPreview(canvas); if (mShowSlidingKeyInputPreview) { drawSlidingKeyInputPreview(canvas); }