Loading core/java/android/inputmethodservice/InputMethodService.java +1 −8 Original line number Diff line number Diff line Loading @@ -401,10 +401,7 @@ public class InputMethodService extends AbstractInputMethodService { private long mStylusHwSessionsTimeout = STYLUS_HANDWRITING_IDLE_TIMEOUT_MS; private Runnable mStylusWindowIdleTimeoutRunnable; private long mStylusWindowIdleTimeoutForTest; /** * Tracks last {@link MotionEvent#getToolType(int)} used for {@link MotionEvent#ACTION_DOWN}. **/ private int mLastUsedToolType; /** * Tracks the ctrl+shift shortcut **/ Loading Loading @@ -1368,7 +1365,6 @@ public class InputMethodService extends AbstractInputMethodService { private void updateEditorToolTypeInternal(int toolType) { if (Flags.useHandwritingListenerForTooltype()) { mLastUsedToolType = toolType; if (mInputEditorInfo != null) { mInputEditorInfo.setInitialToolType(toolType); } Loading Loading @@ -3385,9 +3381,6 @@ public class InputMethodService extends AbstractInputMethodService { null /* icProto */); mInputStarted = true; mStartedInputConnection = ic; if (Flags.useHandwritingListenerForTooltype()) { editorInfo.setInitialToolType(mLastUsedToolType); } mInputEditorInfo = editorInfo; initialize(); mInlineSuggestionSessionController.notifyOnStartInput( Loading Loading
core/java/android/inputmethodservice/InputMethodService.java +1 −8 Original line number Diff line number Diff line Loading @@ -401,10 +401,7 @@ public class InputMethodService extends AbstractInputMethodService { private long mStylusHwSessionsTimeout = STYLUS_HANDWRITING_IDLE_TIMEOUT_MS; private Runnable mStylusWindowIdleTimeoutRunnable; private long mStylusWindowIdleTimeoutForTest; /** * Tracks last {@link MotionEvent#getToolType(int)} used for {@link MotionEvent#ACTION_DOWN}. **/ private int mLastUsedToolType; /** * Tracks the ctrl+shift shortcut **/ Loading Loading @@ -1368,7 +1365,6 @@ public class InputMethodService extends AbstractInputMethodService { private void updateEditorToolTypeInternal(int toolType) { if (Flags.useHandwritingListenerForTooltype()) { mLastUsedToolType = toolType; if (mInputEditorInfo != null) { mInputEditorInfo.setInitialToolType(toolType); } Loading Loading @@ -3385,9 +3381,6 @@ public class InputMethodService extends AbstractInputMethodService { null /* icProto */); mInputStarted = true; mStartedInputConnection = ic; if (Flags.useHandwritingListenerForTooltype()) { editorInfo.setInitialToolType(mLastUsedToolType); } mInputEditorInfo = editorInfo; initialize(); mInlineSuggestionSessionController.notifyOnStartInput( Loading