Loading core/java/android/view/inputmethod/flags.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -106,3 +106,13 @@ flag { } } flag { name: "defer_show_soft_input_until_session_creation" namespace: "input_method" description: "Defers showSoftInput until the IME session has been created." bug: "337766845" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +8 −1 Original line number Diff line number Diff line Loading @@ -3400,7 +3400,14 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. mBindingController.setCurrentMethodVisible(); final IInputMethodInvoker curMethod = getCurMethodLocked(); ImeTracker.forLogging().onCancelled(mCurStatsToken, ImeTracker.PHASE_SERVER_WAIT_IME); if (curMethod != null) { final boolean readyToDispatchToIme; if (Flags.deferShowSoftInputUntilSessionCreation()) { readyToDispatchToIme = curMethod != null && mCurClient != null && mCurClient.mCurSession != null; } else { readyToDispatchToIme = curMethod != null; } if (readyToDispatchToIme) { ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_SERVER_HAS_IME); mCurStatsToken = null; Loading Loading
core/java/android/view/inputmethod/flags.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -106,3 +106,13 @@ flag { } } flag { name: "defer_show_soft_input_until_session_creation" namespace: "input_method" description: "Defers showSoftInput until the IME session has been created." bug: "337766845" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } }
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +8 −1 Original line number Diff line number Diff line Loading @@ -3400,7 +3400,14 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. mBindingController.setCurrentMethodVisible(); final IInputMethodInvoker curMethod = getCurMethodLocked(); ImeTracker.forLogging().onCancelled(mCurStatsToken, ImeTracker.PHASE_SERVER_WAIT_IME); if (curMethod != null) { final boolean readyToDispatchToIme; if (Flags.deferShowSoftInputUntilSessionCreation()) { readyToDispatchToIme = curMethod != null && mCurClient != null && mCurClient.mCurSession != null; } else { readyToDispatchToIme = curMethod != null; } if (readyToDispatchToIme) { ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_SERVER_HAS_IME); mCurStatsToken = null; Loading