Skip to content

Commit 1332b53

Browse files
author
Nick Pelly
committed
Fix some location issues exposed by CTS.
Change-Id: I5859ee2c9db5745b0a3bc8abfa8f08728fb25059
1 parent 5584b49 commit 1332b53

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

location/java/com/android/internal/location/ProviderProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void writeToParcel(Parcel parcel, int flags) {
145145
parcel.writeInt(mHasMonetaryCost ? 1 : 0);
146146
parcel.writeInt(mSupportsAltitude ? 1 : 0);
147147
parcel.writeInt(mSupportsSpeed ? 1 : 0);
148-
parcel.writeInt(mSupportsSpeed ? 1 : 0);
148+
parcel.writeInt(mSupportsBearing ? 1 : 0);
149149
parcel.writeInt(mPowerRequirement);
150150
parcel.writeInt(mAccuracy);
151151
}

services/java/com/android/server/LocationManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,8 @@ public void addTestProvider(String name, ProviderProperties properties) {
15661566
MockProvider provider = new MockProvider(name, this, properties);
15671567
// remove the real provider if we are replacing GPS or network provider
15681568
if (LocationManager.GPS_PROVIDER.equals(name)
1569-
|| LocationManager.NETWORK_PROVIDER.equals(name)) {
1569+
|| LocationManager.NETWORK_PROVIDER.equals(name)
1570+
|| LocationManager.FUSED_PROVIDER.equals(name)) {
15701571
LocationProviderInterface p = mProvidersByName.get(name);
15711572
if (p != null) {
15721573
removeProviderLocked(p);

0 commit comments

Comments
 (0)