Loading services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +7 −8 Original line number Diff line number Diff line Loading @@ -1233,14 +1233,13 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. } } private void onUpdateEditorToolType(int toolType) { synchronized (ImfLock.class) { IInputMethodInvoker curMethod = getCurMethodLocked(); @GuardedBy("ImfLock.class") private void onUpdateEditorToolTypeLocked(@MotionEvent.ToolType int toolType) { final IInputMethodInvoker curMethod = getCurMethodLocked(); if (curMethod != null) { curMethod.updateEditorToolType(toolType); } } } private void discardHandwritingDelegationText() { synchronized (ImfLock.class) { Loading Loading @@ -3459,7 +3458,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. if (Flags.useHandwritingListenerForTooltype()) { maybeReportToolType(); } else if (lastClickToolType != MotionEvent.TOOL_TYPE_UNKNOWN) { onUpdateEditorToolType(lastClickToolType); onUpdateEditorToolTypeLocked(lastClickToolType); } mVisibilityApplier.performShowIme(windowToken, statsToken, mVisibilityStateComputer.getShowFlagsForInputMethodServiceOnly(), Loading Loading @@ -3493,7 +3492,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. // other toolTypes are irrelevant and reported as unknown. toolType = MotionEvent.TOOL_TYPE_UNKNOWN; } onUpdateEditorToolType(toolType); onUpdateEditorToolTypeLocked(toolType); } @Override Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +7 −8 Original line number Diff line number Diff line Loading @@ -1233,14 +1233,13 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. } } private void onUpdateEditorToolType(int toolType) { synchronized (ImfLock.class) { IInputMethodInvoker curMethod = getCurMethodLocked(); @GuardedBy("ImfLock.class") private void onUpdateEditorToolTypeLocked(@MotionEvent.ToolType int toolType) { final IInputMethodInvoker curMethod = getCurMethodLocked(); if (curMethod != null) { curMethod.updateEditorToolType(toolType); } } } private void discardHandwritingDelegationText() { synchronized (ImfLock.class) { Loading Loading @@ -3459,7 +3458,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. if (Flags.useHandwritingListenerForTooltype()) { maybeReportToolType(); } else if (lastClickToolType != MotionEvent.TOOL_TYPE_UNKNOWN) { onUpdateEditorToolType(lastClickToolType); onUpdateEditorToolTypeLocked(lastClickToolType); } mVisibilityApplier.performShowIme(windowToken, statsToken, mVisibilityStateComputer.getShowFlagsForInputMethodServiceOnly(), Loading Loading @@ -3493,7 +3492,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. // other toolTypes are irrelevant and reported as unknown. toolType = MotionEvent.TOOL_TYPE_UNKNOWN; } onUpdateEditorToolType(toolType); onUpdateEditorToolTypeLocked(toolType); } @Override Loading