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