I'm drawing a background color in canvas using a Paint object. I'm using xfermode as PorterDuffXfermode(PorterDuff.Mode.DARKEN)
for this paint. The background color is visible in devices below Android 10. But when I run in Android 10 devices, the background color is not visible.
paint.xfermode = PorterDuffXfermode(PorterDuff.Mode.DARKEN)
I was searching for any behavior changes in Android 10 on the Android Developers site but found nothing related to paint.
Is this a bug from their side or am I doing something wrong?