Explorar el Código

Enable the in-memory cache to cache objects.

fengyuecanzhu hace 3 años
padre
commit
dfdcf3b52f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/src/main/java/io/legado/app/help/CacheManager.kt

+ 1 - 1
app/src/main/java/io/legado/app/help/CacheManager.kt

@@ -35,7 +35,7 @@ object CacheManager {
             is ByteArray -> ACache.get().put(key, value, saveTime)
             else -> {
                 val cache = Cache(key, value.toString(), deadline)
-                putMemory(key, value.toString())
+                putMemory(key, value)
                 appDb.cacheDao.insert(cache)
             }
         }