When I set a gray filter globally in my app, the video played without picture but with sound
Open
needs triage
question
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,When I set a gray filter globally in my app, the video played without picture but with sound. This is the code that I set up
`fun init() {
mGrayPaint = Paint().apply {
ColorMatrix().apply {
setSaturation(0F)
}.let {
colorFilter = ColorMatrixColorFilter(it)
}
}
}
fun setLayerGrayType(view: View) {
init()
view.setLayerType(View.LAYER_TYPE_HARDWARE, mGrayPaint)
}`
Contributor guide
Assessment
This issue has not been assessed yet.