am ef43cc9d: Fix dismissing gesture floating preview

# Via Tadashi G. Takaoka
* commit 'ef43cc9d1c78d051b3d2923ce3166e9703d4b2ce':
  Fix dismissing gesture floating preview
main
Tadashi G. Takaoka 2013-01-24 16:14:13 -08:00 committed by Android Git Automerger
commit 7b5fcc4721
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);