Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f83095cf authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Handle NPE for toolType update with hardware keyboard" into main

parents 6fba7c5f cbf70c0b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1256,8 +1256,10 @@ public class InputMethodService extends AbstractInputMethodService {
    private void updateEditorToolTypeInternal(int toolType) {
        if (Flags.useHandwritingListenerForTooltype()) {
            mLastUsedToolType = toolType;
            if (mInputEditorInfo != null) {
                mInputEditorInfo.setInitialToolType(toolType);
            }
        }
        onUpdateEditorToolType(toolType);
    }