Merge "Shorten IME surface caching duration" into tm-dev am: c54e991bec am: a72019a7e1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18030730

Change-Id: I6d612a10497610bcba2fccf9261985225d144170
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Taran Singh
2022-04-29 21:36:36 +00:00
committed by Automerger Merge Worker

View File

@@ -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();