summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorTaran Singh <tarandeep@google.com>2022-04-29 21:20:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-04-29 21:20:48 +0000
commitc54e991bec3fe30b4c7f9af335c8c533aa7d3526 (patch)
tree86c466c98b7a0315ba2c8929c923850f0444249f /core/java/android/inputmethodservice/InputMethodService.java
parent3137c78e1bd366d6f34796b25181f7566bc29766 (diff)
parent75ce82747d7dd939187ec2d802c04119d7471619 (diff)
Merge "Shorten IME surface caching duration" into tm-dev
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
-rw-r--r--core/java/android/inputmethodservice/InputMethodService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java
index a6ed42348af6..efd4f0681838 100644
--- a/core/java/android/inputmethodservice/InputMethodService.java
+++ b/core/java/android/inputmethodservice/InputMethodService.java
@@ -482,8 +482,9 @@ public class InputMethodService extends AbstractInputMethodService {
/**
* Timeout after which hidden IME surface will be removed from memory
+ * TODO(b/230762351): reset timeout to 5000ms and invalidate cache when IME insets change.
*/
- private static final long TIMEOUT_SURFACE_REMOVAL_MILLIS = 5000;
+ private static final long TIMEOUT_SURFACE_REMOVAL_MILLIS = 500;
InputMethodManager mImm;
private InputMethodPrivilegedOperations mPrivOps = new InputMethodPrivilegedOperations();