Closed fangdingjun closed 8 years ago
Hi fangdingjun, thanks SO much for your contribution. I have two comments on the code. It seems like we should do both operations for all users. Even if APIs are deprecated, some developers use deprecated methods so we need to guard those calls.
I update the code, please review it.
Actually, the code metioned in your second comment do not apply for all version, because the if block has a return statement.
Thank you! Didn't see the premature return statement
At API level 18, a new function Location.isFromMockProvider is added for detect mock location