feat: add make animations and bottom back button configurable#1551
Open
kkbin505 wants to merge 1 commit into
Open
feat: add make animations and bottom back button configurable#1551kkbin505 wants to merge 1 commit into
kkbin505 wants to merge 1 commit into
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 (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):
关闭该选项后,所有受控动画的时长将自动变为 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.)