I would like to know if Android has any flag to be added into configChanges in an Activity attribute in the AndroidManifest for modifications in the Invert Colors option of the device.
The android doc shows the following flags:
- "mcc"
- "mnc"
- "locale"
- "touchscreen"
- "keyboard"
- "keyboardHidden"
- "navigation"
- "screenLayout"
- "fontScale"
- "uiMode" // this one is for the dark mode
- "orientation"
- "density"
- "screenSize"
- "smallestScreenSize"
But none of them deal with it.
Invert colors option:

If you need to check the state of inverted colors I see just two possible solutions.
Manual check. Taken from this question:
Get enable/disable status and of accessibility Colour inversion mode
And also you can use
AccessibilityService.On inversion color changed i've got such event:
So i can check the current state somehow like this:
I'm not sure it will work for every device.
I've never done it before, so maybe there is a better solution.