Merge "Fix issue #5260129: Suggestion strip in Talk app not showing all the time"

This commit is contained in:
Dianne Hackborn
2011-09-19 10:42:52 -07:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}
/**