diff options
| author | 2022-12-22 20:41:46 +0000 | |
|---|---|---|
| committer | 2022-12-22 20:41:46 +0000 | |
| commit | 77bef7e1d56850868851cc75b5bb6ec5fbeb7890 (patch) | |
| tree | e690ad6861733f297cb671c154c57caf2f774ebe | |
| parent | 9abbc3a37acdf476e2476e6acf03047888f332db (diff) | |
| parent | 8ec05512be4951a9b90e71030e49291dd7104249 (diff) | |
Merge "Allow IME to register callbacks with negative priorities." into tm-qpr-dev
| -rw-r--r-- | core/java/android/window/ImeOnBackInvokedDispatcher.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/window/ImeOnBackInvokedDispatcher.java b/core/java/android/window/ImeOnBackInvokedDispatcher.java index 14f52282b3aa..9152e7837b82 100644 --- a/core/java/android/window/ImeOnBackInvokedDispatcher.java +++ b/core/java/android/window/ImeOnBackInvokedDispatcher.java @@ -123,7 +123,7 @@ public class ImeOnBackInvokedDispatcher implements OnBackInvokedDispatcher, Parc private void receive( int resultCode, Bundle resultData, - @NonNull OnBackInvokedDispatcher receivingDispatcher) { + @NonNull WindowOnBackInvokedDispatcher receivingDispatcher) { final int callbackId = resultData.getInt(RESULT_KEY_ID); if (resultCode == RESULT_CODE_REGISTER) { int priority = resultData.getInt(RESULT_KEY_PRIORITY); @@ -140,11 +140,11 @@ public class ImeOnBackInvokedDispatcher implements OnBackInvokedDispatcher, Parc @NonNull IOnBackInvokedCallback iCallback, @OnBackInvokedDispatcher.Priority int priority, int callbackId, - @NonNull OnBackInvokedDispatcher receivingDispatcher) { + @NonNull WindowOnBackInvokedDispatcher receivingDispatcher) { final ImeOnBackInvokedCallback imeCallback = new ImeOnBackInvokedCallback(iCallback, callbackId, priority); mImeCallbacks.add(imeCallback); - receivingDispatcher.registerOnBackInvokedCallback(priority, imeCallback); + receivingDispatcher.registerOnBackInvokedCallbackUnchecked(imeCallback, priority); } private void unregisterReceivedCallback( |