Fix dismissing gesture floating preview

Bug: 8063926
Change-Id: I3b5b29ea0d5e4833e10e830dbdb086c868cd4884
main
Tadashi G. Takaoka 2013-01-24 12:07:01 +09:00
parent dbd518b2d1
commit ef43cc9d1c
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ public class GestureFloatingPreviewText extends AbstractDrawingPreview {
*/
protected void updatePreviewPosition() {
if (mSuggestedWords.isEmpty() || TextUtils.isEmpty(mSuggestedWords.getWord(0))) {
getDrawingView().invalidate();
return;
}
final String text = mSuggestedWords.getWord(0);