我是通过这个方法切换的AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)然后把状态存在SharedPreferencesData里频繁退出启动后,就出现夜间模式下,资源使用混乱现象