Appcompatdelegate.setdefaultnightmode Doesn't Work On Physical Device
Changing night-light mode perfectly works in my emulator, but when i try to do the same on physical device(xiaomi) I get next exception: E/ActivityInjector: get life cycle exceptio
Solution 1:
This seem caused by calling Activity.recreate()
in Xiaomi's firmware. This problem also happen to my library which recreate the activity to apply the language changing.
See https://github.com/akexorcist/Localization/issues/89
In my case, no app crashing and code working properly. So I skipped this problem.
Related questions
Post a Comment for "Appcompatdelegate.setdefaultnightmode Doesn't Work On Physical Device"