I'm developing a custom keyboard using InputMethodService. In my implementation, I override the onUpdateEditorToolType(toolType: Int) method to detect when the user taps into an input field.
On Android 14, this method was triggered as expected when the user clicked on an input field. However, after upgrading to Android 15 (tested on a Pixel device), this method is no longer being called when tapping an input field.
What I've Tried: Checked System Logs: There are no logs indicating that onUpdateEditorToolType() is being triggered.
Verified API Level: Confirmed that my test device is running Android 15.
Tested on Different Input Fields: Tried different apps (Chrome, Messages, Notes) to see if any would trigger it—none did.
Ensured Proper Service Registration: My IME is registered and working as expected for text input.
Tested Other InputMethodService Methods: onStartInputView() and onStartInput() are still called normally when switching input fields.
Questions: Has there been a behavior change in onUpdateEditorToolType() in Android 15?
Is there a new recommended way to detect when the user taps into an input field?
Are there alternative callbacks I should be using instead?
Any insights or workarounds would be greatly appreciated!