set cache type to Source at gifs

This commit is contained in:
tibbi 2017-03-18 19:11:29 +01:00
parent fde83fdc5a
commit 26d7b50475
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList<FileDir
return itemView return itemView
} }
private fun getCacheStrategy(item: FileDirItem) = if (File(item.path).isGif()) DiskCacheStrategy.NONE else DiskCacheStrategy.RESULT private fun getCacheStrategy(item: FileDirItem) = if (File(item.path).isGif()) DiskCacheStrategy.SOURCE else DiskCacheStrategy.RESULT
private fun getChildrenCnt(item: FileDirItem): String { private fun getChildrenCnt(item: FileDirItem): String {
val children = item.children val children = item.children