I want to update my widget when the user switches between light and dark theme, but I don’t know how to do it, it seems I can’t receive such events.
I tried to add android.intent.action.CONFIGURATION_CHANGED action in my broadcastreceiver, but it doesn’t work.
<intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> <action android:name="android.intent.action.CONFIGURATION_CHANGED"/> </intent-filter>