Allow for switching between emoji categories using swipe left/right (#1488)

This commit is contained in:
Eran Leshem 2025-05-18 20:18:23 +03:00 committed by GitHub
parent 199f177c2d
commit 731c6cdd5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 217 additions and 252 deletions

View file

@ -2022,8 +2022,10 @@ public class LatinIME extends InputMethodService implements
public void onTrimMemory(int level) {
super.onTrimMemory(level);
switch (level) {
case TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_COMPLETE ->
KeyboardLayoutSet.onSystemLocaleChanged(); // clears caches, nothing else
case TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_COMPLETE -> {
KeyboardLayoutSet.onSystemLocaleChanged(); // clears caches, nothing else
mKeyboardSwitcher.trimMemory();
}
// deallocateMemory always called on hiding, and should not be called when showing
}
}