Skip to content
Snippets Groups Projects
Commit ef43cc9d authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix dismissing gesture floating preview

Bug: 8063926
Change-Id: I3b5b29ea0d5e4833e10e830dbdb086c868cd4884
parent dbd518b2
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,7 @@ public class GestureFloatingPreviewText extends AbstractDrawingPreview { ...@@ -157,6 +157,7 @@ public class GestureFloatingPreviewText extends AbstractDrawingPreview {
*/ */
protected void updatePreviewPosition() { protected void updatePreviewPosition() {
if (mSuggestedWords.isEmpty() || TextUtils.isEmpty(mSuggestedWords.getWord(0))) { if (mSuggestedWords.isEmpty() || TextUtils.isEmpty(mSuggestedWords.getWord(0))) {
getDrawingView().invalidate();
return; return;
} }
final String text = mSuggestedWords.getWord(0); final String text = mSuggestedWords.getWord(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment