summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Justin Ghan <justinghan@google.com> 2024-05-02 14:26:33 -0700
committer Justin Ghan <justinghan@google.com> 2024-05-02 14:26:33 -0700
commitb0da69e3272a799c1abe945446e9d21f132d5cb7 (patch)
tree558c8bfb197ee7b34736e1af3c2b266544943adc
parent6059aa47230b7d69c12aae72cb664a3f67ba7852 (diff)
Invalidate connectionless handwriting availability cache when enabled setting changes
Bug: 338036076 Test: StylusHandwritingTest Change-Id: I1e3198fb94c9a781cf709b2a55197ad65e354278
-rw-r--r--services/core/java/com/android/server/inputmethod/InputMethodManagerService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
index b2b2c0ef57e6..aeb613f3aa7e 100644
--- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
+++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java
@@ -816,6 +816,8 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
}
} else if (stylusHandwritingEnabledUri.equals(uri)) {
InputMethodManager.invalidateLocalStylusHandwritingAvailabilityCaches();
+ InputMethodManager
+ .invalidateLocalConnectionlessStylusHandwritingAvailabilityCaches();
} else {
boolean enabledChanged = false;
String newEnabled = InputMethodSettingsRepository.get(mCurrentUserId)