My project is based on surfaceView and up until now I\'ve had all of my rendering in onDraw which I am overriding. All seemed to be OK.
However, I\'ve just updated my S
As friiky said, @SuppressLint("WrongCall") fixed my problem. However it must be in front of the method name, not the above.
@SuppressLint("WrongCall")
What I did is put mouse over the error code, right click and select Add @SuppressLint("WrongCall")
Add @SuppressLint("WrongCall")