Skip to content

Commit 2c2ab58

Browse files
Dianne HackbornWei Huang
authored andcommitted
Fix issue #5260129: Suggestion strip in Talk app not showing all the time
1 parent d88324d commit 2c2ab58

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core/java/android/widget/TextView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,11 @@ public void setEnabled(boolean enabled) {
11931193
}
11941194
super.setEnabled(enabled);
11951195
prepareCursorControllers();
1196+
if (enabled) {
1197+
// Make sure IME is updated with current editor info.
1198+
InputMethodManager imm = InputMethodManager.peekInstance();
1199+
if (imm != null) imm.restartInput(this);
1200+
}
11961201
}
11971202

11981203
/**

0 commit comments

Comments
 (0)