TeamAmaze / TeamAmaze/AmazeFileManager

Drawer category views reset to Home directory after rotation

Open
#4,629 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Issue-Easy (good first issue)
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Describe the bug

Drawer category views (Images, Videos, Audio, Documents, APKs, Recent Files, Quick Access, Trash Bin) are not preserved across rotation.

After rotating the device, the selected drawer category is lost and the configured Home directory is reloaded instead.


To Reproduce

  1. Open Amaze File Manager
  2. Open a drawer category view such as Images
  3. Verify the category content is displayed
  4. Rotate the device
  5. Observe that the content view resets to the configured Home directory view instead of preserving the selected drawer category view

Expected behavior

The currently selected drawer category view should remain active across configuration changes.

For example, if Images is open before rotation, the Images view and its contents should still be displayed after rotation.


Screenshots / Video

Screen recording attached showing:

  • Images loading correctly
  • rotation to landscape
  • content resetting to the configured Home directory
  • selecting Images again restoring the correct view
  • rotation back to portrait causing the same reset

https://github.com/user-attachments/assets/bfa25617-41e4-4d0b-b22f-1426f119ac6e


Smartphone

  • Device: Pixel 9 Pro Emulator
  • OS: Android 16.0
  • Rooted: No
  • Version: Current release/4.0 branch build

Contributor guide

Open the contributing guide

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

Reproduce the rotation behavior on the release/4.0 branch, then trace how the selected drawer category and Home directory are restored across configuration changes. Done means each listed drawer category remains selected with its contents visible after rotating between portrait and landscape.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.