Fix statistics serializing bug

This commit is contained in:
carbotaniuman 2020-06-19 15:28:27 -05:00
parent a270cf9115
commit 5e407a9e81

View file

@ -216,7 +216,7 @@ public class MangaDexClient {
DiskLruCache.Editor editor = cache.edit("statistics");
if (editor != null) {
JACKSON.writeValue(editor.newOutputStream(0), Statistics.class);
JACKSON.writeValue(editor.newOutputStream(0), statistics.get());
editor.commit();
}
}