From a6ffae76ac3e968b39820a0b09108bc255ce6ea5 Mon Sep 17 00:00:00 2001 From: Taran Singh Date: Tue, 31 Jan 2023 01:43:35 +0000 Subject: [PATCH] Add missing requestCursorUpdates to InputconnectionWrapper Add missing requestCursorUpdates(mode, filter) method in InputConnectionWrapper. Bug: 266630841 Test: atest CtsInputMethodTestCases Change-Id: I9913294ce0a0d377653b491255140481e905d3dc --- .../view/inputmethod/InputConnectionWrapper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/java/android/view/inputmethod/InputConnectionWrapper.java b/core/java/android/view/inputmethod/InputConnectionWrapper.java index 5e323fac2d8cb..8f270f5c5eeb6 100644 --- a/core/java/android/view/inputmethod/InputConnectionWrapper.java +++ b/core/java/android/view/inputmethod/InputConnectionWrapper.java @@ -356,6 +356,16 @@ public class InputConnectionWrapper implements InputConnection { return mTarget.requestCursorUpdates(cursorUpdateMode); } + /** + * {@inheritDoc} + * @throws NullPointerException if the target is {@code null}. + */ + @Override + public boolean requestCursorUpdates(@CursorUpdateMode int cursorUpdateMode, + @CursorUpdateFilter int cursorUpdateFilter) { + return mTarget.requestCursorUpdates(cursorUpdateMode, cursorUpdateFilter); + } + /** * {@inheritDoc} * @throws NullPointerException if the target is {@code null}.