Skip to content

Replace AsyncTask with RxJava for file list loading in MainFragment - #4690

Open
alihrhera wants to merge 1 commit into
TeamAmaze:release/4.0from
alihrhera:fix/new-tab-doubles-file-count
Open

Replace AsyncTask with RxJava for file list loading in MainFragment#4690
alihrhera wants to merge 1 commit into
TeamAmaze:release/4.0from
alihrhera:fix/new-tab-doubles-file-count

Conversation

@alihrhera

Copy link
Copy Markdown
  • Refactor LoadFilesListTask to remove AsyncTask dependency and expose a standalone load() method
  • Use RxJava Single in MainFragment for asynchronous file loading and lifecycle-aware cancellation
  • Track loading Disposable and dispose it when starting a new load or destroying the view
  • Move error handling and progress updates to the reactive flow
  • Remove manual task state checks and rely on RxJava cancellation handling

Fixes #4670: New tab doubles file count

Description

Issue tracker

Fixes #4670
Addresses New tab doubles file count

Automatic tests

  • Added unit tests for specific individual functions
  • Added headless tests for new app functionality
  • Added emulator tests for new UI elements

Manual tests

  • Done

  • Device: poco x60 pro

  • OS: 16

Build tasks success

Successfully running following tasks on local:

  • ./gradlew assembledebug
  • ./gradlew spotlessCheck

Generative code

  • This PR used generative code tools (GenAI, LLMs, etc.)

  • Model:

  • Version:

  • Provider:

- Refactor LoadFilesListTask to remove AsyncTask dependency and expose a standalone load() method
- Use RxJava Single in MainFragment for asynchronous file loading and lifecycle-aware cancellation
- Track loading Disposable and dispose it when starting a new load or destroying the view
- Move error handling and progress updates to the reactive flow
- Remove manual task state checks and rely on RxJava cancellation handling

Fixes TeamAmaze#4670: New tab doubles file count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New tab doubles file count

1 participant