Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0fb2a7a authored by Yu-Han Yang's avatar Yu-Han Yang Committed by Automerger Merge Worker
Browse files

DO NOT MERGE: Do not inject mock location to chipset am: abccd8f7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13370369

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1472c4aa1300628e60a4012bb7579018ea37609f
parents 66a873b5 abccd8f7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -841,6 +841,9 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
    }

    private void injectBestLocation(Location location) {
        if (location.isFromMockProvider()) {
            return;
        }
        if (DEBUG) {
            Log.d(TAG, "injectBestLocation: " + location);
        }
@@ -942,6 +945,9 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
    }

    private void injectLocation(Location location) {
        if (location.isFromMockProvider()) {
            return;
        }
        if (location.hasAccuracy()) {
            if (DEBUG) {
                Log.d(TAG, "injectLocation: " + location);