Merge "Allow IME to register system back callbacks in ImeOnBackInvokedDispatcher#switchRootView." into tm-qpr-dev am: 467383f0fd am: 9970ac99bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20874663 Change-Id: I78d1e82263f985af14b54db6487f16e5f1a11ed4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -226,8 +226,8 @@ public class ImeOnBackInvokedDispatcher implements OnBackInvokedDispatcher, Parc
|
||||
previous.getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback(imeCallback);
|
||||
}
|
||||
if (current != null) {
|
||||
current.getOnBackInvokedDispatcher().registerOnBackInvokedCallback(
|
||||
imeCallback.mPriority, imeCallback);
|
||||
current.getOnBackInvokedDispatcher().registerOnBackInvokedCallbackUnchecked(
|
||||
imeCallback, imeCallback.mPriority);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user