Fix dismissing gesture floating preview
Bug: 8063926 Change-Id: I3b5b29ea0d5e4833e10e830dbdb086c868cd4884main
parent
dbd518b2d1
commit
ef43cc9d1c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue