zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
6.07k stars 410 forks source link

MF to stop generating thumbnails when app loses focus. #1104

Open aguaviva opened 10 months ago

aguaviva commented 10 months ago

Issue:

Let say you use MF to navigate to a folder with 30 movies and then you open one for watching it. While you are watching the movie MF is in the background generating icons for the rest of the 29 movies.

If the movie is in a remote machine, creating thumbnails in the background causes stuttering while watching the movie, specially on slow connections.

I noticed this while debugging my https://github.com/aguaviva/sftp-documents-provider project :) This affects your network connections too.

Work around:

To disable the thumbnail creation

Desired fix:

To stop generating thumbnails when MF loses focus