am db906a7c: Merge "Rename AbstractDrawingPreview.onDraw to drawPreview"
* commit 'db906a7c9a8f2af79745d80abe439398ceb3d7be': Rename AbstractDrawingPreview.onDraw to drawPreviewmain
commit
2f6f5b8a8c
|
@ -39,7 +39,7 @@ public abstract class AbstractDrawingPreview {
|
||||||
* Draws the preview
|
* Draws the preview
|
||||||
* @param canvas The canvas where the preview is drawn.
|
* @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.
|
* Set the position of the preview.
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class GestureFloatingPreviewText extends AbstractDrawingPreview {
|
||||||
* @param canvas The canvas where preview text is drawn.
|
* @param canvas The canvas where preview text is drawn.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onDraw(final Canvas canvas) {
|
public void drawPreview(final Canvas canvas) {
|
||||||
if (!isPreviewEnabled() || mSuggestedWords.isEmpty()
|
if (!isPreviewEnabled() || mSuggestedWords.isEmpty()
|
||||||
|| TextUtils.isEmpty(mSuggestedWords.getWord(0))) {
|
|| TextUtils.isEmpty(mSuggestedWords.getWord(0))) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -220,7 +220,7 @@ public final class PreviewPlacerView extends RelativeLayout {
|
||||||
// rectangle on the canvas.
|
// rectangle on the canvas.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mGestureFloatingPreviewText.onDraw(canvas);
|
mGestureFloatingPreviewText.drawPreview(canvas);
|
||||||
if (mShowSlidingKeyInputPreview) {
|
if (mShowSlidingKeyInputPreview) {
|
||||||
drawSlidingKeyInputPreview(canvas);
|
drawSlidingKeyInputPreview(canvas);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue