Cannot select text after rotation in extract mode

The InputConnection did not report the fullscreen mode to
the InputMethodManager if the connection was not active
which ended up feeding the Editor false information about
when extracted mode will be started.

Bug: 21455064
Change-Id: Id10315efc41d86407ccfb0a2d3956bcd7c0909b8
This commit is contained in:
Andrei Stingaceanu
2015-06-17 10:38:08 +01:00
parent a106554c20
commit da589dffdd

View File

@@ -409,8 +409,8 @@ public class IInputConnectionWrapper extends IInputContext.Stub {
}
case DO_REPORT_FULLSCREEN_MODE: {
InputConnection ic = mInputConnection.get();
if (ic == null || !isActive()) {
Log.w(TAG, "showStatusIcon on inactive InputConnection");
if (ic == null) {
Log.w(TAG, "reportFullscreenMode on inexistent InputConnection");
return;
}
ic.reportFullscreenMode(msg.arg1 == 1);