I'm trying to automatically refresh appWidget's layout when user changes Day/Night mode.
I have my "day layout" into layout folder, and my "night layout" into layout-night folder.
It's the good layout when the AppWidget just installed... but layout never changes when I change Day/Night's mode.
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM );
is set in my Application class.
How to detect the system's Day / Night mode change into an AppWidget to refresh it, please ?