Clear emoji cache after downloading a new set.

This commit is contained in:
Greyson Parrelli
2021-09-16 09:13:04 -04:00
committed by Alex Hart
parent e5c172a819
commit 08d03cb456
2 changed files with 7 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ object EmojiPageCache {
}
}
fun clear() {
cache.clear()
}
@WorkerThread
private fun loadInternal(context: Context, emojiPageRequest: EmojiPageRequest): Bitmap? {
val inputStream: InputStream = when (emojiPageRequest.emojiPage) {