Loading core/java/android/window/WindowOnBackInvokedDispatcher.java +2 −2 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher { } private boolean callOnKeyPreIme() { if (mViewRoot != null && !isOnBackInvokedCallbackEnabled(mViewRoot.mContext)) { if (mViewRoot != null && !isOnBackInvokedCallbackEnabled()) { return mViewRoot.injectBackKeyEvents(/*preImeOnly*/ true); } else { return false; Loading Loading @@ -505,7 +505,7 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher { if (callback instanceof ImeBackAnimationController || callback instanceof ImeOnBackInvokedDispatcher.ImeOnBackInvokedCallback) { // call onKeyPreIme API if the current callback is an IME callback and the app has // not set enableOnBackInvokedCallback="false" // not set enableOnBackInvokedCallback="true" try { boolean consumed = mOnKeyPreIme.getAsBoolean(); if (consumed) { Loading Loading
core/java/android/window/WindowOnBackInvokedDispatcher.java +2 −2 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher { } private boolean callOnKeyPreIme() { if (mViewRoot != null && !isOnBackInvokedCallbackEnabled(mViewRoot.mContext)) { if (mViewRoot != null && !isOnBackInvokedCallbackEnabled()) { return mViewRoot.injectBackKeyEvents(/*preImeOnly*/ true); } else { return false; Loading Loading @@ -505,7 +505,7 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher { if (callback instanceof ImeBackAnimationController || callback instanceof ImeOnBackInvokedDispatcher.ImeOnBackInvokedCallback) { // call onKeyPreIme API if the current callback is an IME callback and the app has // not set enableOnBackInvokedCallback="false" // not set enableOnBackInvokedCallback="true" try { boolean consumed = mOnKeyPreIme.getAsBoolean(); if (consumed) { Loading