Merge "Shorten IME surface caching duration" into tm-dev

This commit is contained in:
Taran Singh
2022-04-29 21:20:48 +00:00
committed by Android (Google) Code Review

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