对于API>30的设备使用setApplicationNightMode
wangwang-code opened this issue · comments
描述建议
相比于AppCompatDelegate的setDefaultNightMode具有持久化,且在启动画面期间匹配主题。当然他也有缺点,对活动的重新创建会有明显闪烁
https://developer.android.com/develop/ui/views/theming/darktheme?hl=zh-cn#change-themes
建议的必要性
如果可以,我会尝试修改代码,在我的v2rayNG中已经实现