Skip to content

Commit

Permalink
Bug fix: Couldn't apply a mocked location in Android 11. Accuracy and…
Browse files Browse the repository at this point in the history
… powerRequirement changed to values in the ranges needed by the API.
  • Loading branch information
mcastillof committed Feb 6, 2021
1 parent 77cdfa9 commit 4c05f6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public MockLocationProvider(String name, Context ctx) {
try
{
lm.addTestProvider(providerName, false, false, false, false, false,
true, true, 0, 5);
true, true, 1, 2);
lm.setTestProviderEnabled(providerName, true);
} catch(SecurityException e) {
throw new SecurityException("Not allowed to perform MOCK_LOCATION");
Expand Down

0 comments on commit 4c05f6f

Please sign in to comment.