A52q auto brightness issue with light theme in dark ambient condition

a52q with latest e-1.15-t-20230917331436-dev-a52q

I am experiencing issue with a52q auto brightness when using the light them in a darker environment, in this case the brightness start to change rapidly up and down without reaching a stable value.

This does not happen with the dark theme or when the top of the screen has a dark colour. In my opinion, this means the light from the top of the screen is interfering with the brightness sensor. However, I did not have this issue with the latest stock ROM.

I attach 2 screencasts to show how the brightness value is changing (but the links expire in 30 days)

https://upload.disroot.org/r/tdVMaSLu#26xk58t2yepuu+EBr79EnXzXnpRRdq7jOue2pbI0E8Y=
https://upload.disroot.org/r/c__kQWaE#73YdABxmHaLt1yphTJFozBPGxmkqhDqqBWJdOyiWogY=