Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip clearing flutter image cache since default (current) limit is 100MB and the threshold to clear is 250MB

ashilkn0da3dc5084a5
diff --git a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart
index 75eaf6fe5d..6ab50e3019 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart
@@ -432,11 +432,6 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
}
void _cacheAndRender(ImageProvider<Object> imageProvider) {
- if (imageCache.currentSizeBytes > 256 * 1024 * 1024) {
- _logger.info("Clearing image cache");
- imageCache.clear();
- imageCache.clearLiveImages();
- }
precacheImage(imageProvider, context).then((value) {
if (mounted) {
setState(() {