Fix issue #5260129: Suggestion strip in Talk app not showing all the time
This commit is contained in:
committed by
Wei Huang
parent
d88324d8ab
commit
2c2ab5864f
@@ -1193,6 +1193,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
}
|
||||
super.setEnabled(enabled);
|
||||
prepareCursorControllers();
|
||||
if (enabled) {
|
||||
// Make sure IME is updated with current editor info.
|
||||
InputMethodManager imm = InputMethodManager.peekInstance();
|
||||
if (imm != null) imm.restartInput(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user