Simply, I need to check whether or not the device has color correction > greyscale currently on.
Asked
Active
Viewed 30 times
1 Answers
0
I hope this will help
if (Settings.System.getInt(
getContentResolver(),
"accessibility_display_daltonizer_enabled",
0
) == 0
) {
println(" Greyscale mode is not enabled")
} else {
println("Greyscale mode is enabled")
}
These are values for the other screen-space modes:
DISABLED = -1
MONOCHROMACY = 0
PROTANOMALY = 11
CORRECT_DEUTERANOMALY = 12
TRITANOMALY= 13
Find more here

Nrohpos
- 283
- 2
- 7