d1447faf2b
Android firstly checks API version against the function call receiver type, so we should do the same to be consistent. (cherry picked from commit c3d01ec) (cherry picked from commit 5c78acc)