diff --git a/commons/src/main/java/com/vitorpamplona/amethyst/commons/robohash/CachedRobohash.kt b/commons/src/main/java/com/vitorpamplona/amethyst/commons/robohash/CachedRobohash.kt index 18ead28df..222af81e6 100644 --- a/commons/src/main/java/com/vitorpamplona/amethyst/commons/robohash/CachedRobohash.kt +++ b/commons/src/main/java/com/vitorpamplona/amethyst/commons/robohash/CachedRobohash.kt @@ -24,9 +24,9 @@ import android.util.LruCache import androidx.compose.ui.graphics.vector.ImageVector object CachedRobohash { - var cacheIsForLightTheme: Boolean? = null - val cache = LruCache(100) - val assembler = RobohashAssembler() + private var cacheIsForLightTheme: Boolean? = null + private val cache = LruCache(100) + private val assembler = RobohashAssembler() fun cached( msg: String, @@ -52,7 +52,9 @@ object CachedRobohash { cache.evictAll() } - cache[msg]?.let { return it } + cache[msg]?.let { + return it + } val vector = assembler.build(msg, isLightTheme)