From eac77301f8d353287f8a5caa4e9621d1c996daf4 Mon Sep 17 00:00:00 2001 From: lumark Date: Tue, 29 Oct 2019 23:59:42 +0800 Subject: [PATCH] Remove StartInputFlags.FIRST_WINDOW_FOCUS_GAIN Since this flag does not do any check during start input, CL[1] removes this flag and the related parameter for IMM#onPostWindowFocus to keep the logic simpler (included removing ViewRootImpl#mHasHadWindowFocus). Also remove this flag's debug string for For MultiClientInputMethod. This is refector CL and does not impact any behavior change. CL[1]: I9119f4846cbbd2b15246dea9a3b1fc5845dce951 Bug: 141738570 Test: Refector CL, make sure all existing test passed. Change-Id: I9c8c9ac0ce5d0e4a803842d4cefb9119ec51024d --- .../android/multiclientinputmethod/InputMethodDebug.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/InputMethodDebug.java b/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/InputMethodDebug.java index a71bdc892..dd11d212a 100644 --- a/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/InputMethodDebug.java +++ b/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/InputMethodDebug.java @@ -110,9 +110,6 @@ final class InputMethodDebug { if ((startInputFlags & StartInputFlags.IS_TEXT_EDITOR) != 0) { joiner.add("IS_TEXT_EDITOR"); } - if ((startInputFlags & StartInputFlags.FIRST_WINDOW_FOCUS_GAIN) != 0) { - joiner.add("FIRST_WINDOW_FOCUS_GAIN"); - } if ((startInputFlags & StartInputFlags.INITIAL_CONNECTION) != 0) { joiner.add("INITIAL_CONNECTION"); }