From da589dffddaf4046d3b4fd8d14d5f984a1c4324a Mon Sep 17 00:00:00 2001 From: Andrei Stingaceanu Date: Wed, 17 Jun 2015 10:38:08 +0100 Subject: [PATCH] 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 --- .../com/android/internal/view/IInputConnectionWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/com/android/internal/view/IInputConnectionWrapper.java b/core/java/com/android/internal/view/IInputConnectionWrapper.java index e19b2b60be5d0..85ec29c4634ca 100644 --- a/core/java/com/android/internal/view/IInputConnectionWrapper.java +++ b/core/java/com/android/internal/view/IInputConnectionWrapper.java @@ -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);