Android 当从辅助流程启动时,活动中不总是正确考虑夜间模式值
设备/应用程序当前环境:Android 当从辅助流程启动时,活动中不总是正确考虑夜间模式值,android,android-appcompat,androidx,android-night-mode,Android,Android Appcompat,Androidx,Android Night Mode,设备/应用程序当前环境: 设备设置为暗模式 应用程序正在强制禁用暗模式(AppCompatDelegate.setDefaultNightMode(mode\u NIGHT\u NO)) 当我从设备主页启动应用程序时,一切正常。使用的颜色/图像资源都是正确的 但是,当我使用pendingent从二级进程启动应用程序中的活动时,使用的颜色/图像资源并不都正确。一些夜间值资源被不希望地使用 Intent intent = new Intent(context, SomeActivity.cla
- 设备设置为暗模式李>
- 应用程序正在强制禁用暗模式(
)李>AppCompatDelegate.setDefaultNightMode(mode\u NIGHT\u NO)
当我从设备主页启动应用程序时,一切正常。使用的颜色/图像资源都是正确的 但是,当我使用
pendingent
从二级进程启动应用程序中的活动时,使用的颜色/图像资源并不都正确。一些夜间值
资源被不希望地使用
Intent intent = new Intent(context, SomeActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(
context,
0,
intent,
0
);
pendingIntent.send();
Obs.:在活动的onCreate
完成5秒后强制执行活动recreate()
,将其修复
做了一些研究,我发现,androidx.appcompat:appcompat
version可能与此有关。在版本1.1.0
上会出现错误,但在1.2.0(alpha 3)
上不会
这是已知的安卓bug吗?
是否存在不使用alpha版本的
androidx.appcompat:appcompat