Skip to content

Commit 4a81ef8

Browse files
Nick PellyAndroid (Google) Code Review
authored andcommitted
Merge "Fix some location issues exposed by CTS." into jb-mr1-dev
2 parents a6d1699 + 1332b53 commit 4a81ef8

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)