Merge "Make sure IME focus is synced to View focus" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-08-06 18:18:55 +00:00
committed by Android (Google) Code Review

View File

@@ -9888,6 +9888,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
public void dispatchFinishTemporaryDetach() {
onFinishTemporaryDetach();
mPrivateFlags3 &= ~PFLAG3_TEMPORARY_DETACH;
if (hasWindowFocus() && hasFocus()) {
InputMethodManager.getInstance().focusIn(this);
}
}
/**