zhanghai / zhanghai/MaterialFiles

MF to stop generating thumbnails when app loses focus.

Open
#1,104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Trace thumbnail generation and the Android app focus lifecycle, then verify that generation pauses when MaterialFiles loses focus and resumes appropriately without causing remote playback stuttering.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.