Do not preload videos

This commit is contained in:
Vishnu Mohandas 2020-06-23 20:29:27 +05:30
parent f12ef4fe6a
commit 2f4b4c3280

View file

@ -111,6 +111,9 @@ class _DetailPageState extends State<DetailPage> {
}
void _preloadFile(File file) {
if (file.fileType == FileType.video) {
return;
}
if (file.localId == null) {
file.getBytes().then((data) {
BytesLruCache.put(file, data);