Skip to content

feat: add make animations and bottom back button configurable#1551

Open
kkbin505 wants to merge 1 commit into
zhanghai:masterfrom
kkbin505:master
Open

feat: add make animations and bottom back button configurable#1551
kkbin505 wants to merge 1 commit into
zhanghai:masterfrom
kkbin505:master

Conversation

@kkbin505

@kkbin505 kkbin505 commented May 9, 2026

Copy link
Copy Markdown

概述 (Overview)
加入“禁用动画”和“底部返回按钮”功能到设置菜单中。主要为了提升了应用在 E-paper (墨水屏) 设备上的可用性。 (Added "Disable Animations" and "Bottom Back Button" features to the settings menu. The main goal is to improve usability on E-paper devices.)

主要改动 (Key Changes)
动画配置(Configurable Animations):
image

关闭该选项后,所有受控动画的时长将自动变为 0,从而消除墨水屏上的刷新残影。
(Refactored AnimationConfig to respect the FILE_LIST_ANIMATION setting. When disabled, all transition durations are set to 0 to eliminate refresh ghosting on e-ink screens.)
底部返回按钮 (Bottom Back Button):
在 Interface 设置中新增了“底部返回按钮”开关,避免有的设备返回按键需要进入二级菜单。
在 App.kt 中实现了基于 LiveData 的动态注入逻辑,修改设置后无需重启 Activity 即可生效。
(Added a "Bottom Back Button" toggle in Interface settings to provide easier navigation on devices where the system back key is hidden in sub-menus. Implemented dynamic injection in App.kt using LiveData, making changes effective immediately without activity restarts.)

- Add back button
- Add settings toggle for file list animations and go back button.
- Refactor AnimationConfig to use dynamic user preference.
- Implement dynamic injection of a centered bottom back button in App.kt.
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.

1 participant