Fix Navigation error: App crash when pushing back. - #104
Merged
Conversation
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.
当前从任意页面返回都会导致app直接退出,同时logcat报错:
参考官方文档,推荐使用
removeLastOrNull()方法来弹出返回栈。修复首页进入时只有home按钮的问题。
调整配色问题。在条目页/人物页/小组页/目录页/我的页,顶部有一个模糊的背景图,上面有文字。但是文字颜色目前由主题颜色决定,导致如果背景图为白色-文字为白色,或背景图为黑色-文字为黑色时,文字就会看不清。
所以我将文字颜色设置为跟据背景图的深浅决定,可以缓解看不清楚的情况。修改前后对比:

底栏tab的文字颜色从固定色到适应主题色。