清理键盘emoji内存高的问题

This commit is contained in:
2026-03-04 15:06:49 +08:00
parent fd5de4f197
commit 5c0cf2b435
6 changed files with 158 additions and 22 deletions

View File

@@ -195,6 +195,12 @@ static const NSUInteger kKBEmojiRecentsLimit = 32;
}
}
- (void)purgeLargeCaches {
self.categoriesInternal = nil;
self.itemLookup = nil;
self.recentValues = nil;
}
- (void)onLocalizationChanged:(__unused NSNotification *)note {
[self refreshLocalizedTitles];
[[NSNotificationCenter defaultCenter] postNotificationName:KBEmojiRecentsDidChangeNotification object:nil];