问题描述
如果我的“简介活动”中默认模式为黑暗模式,我将尝试设置为明亮模式
Intro.java
if(AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_NO)
{
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
this.recreate();
}
但这会引发错误:
2020-10-25 07:04:43.626 9167-9167/com.xxxx.xxxxxx E/ActivityInjector: get life cycle exception
java.lang.classCastException: android.os.BinderProxy cannot be cast to android.app.servertransaction.ClientTransaction
我正在使用
Theme.AppCompat.DayNight.NoActionBar
主题也不在活动中更新。 如果有人知道,请帮助我。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)