diff options
| author | 2013-08-16 14:12:59 -0700 | |
|---|---|---|
| committer | 2013-08-16 14:12:59 -0700 | |
| commit | 6de10472786ee17106b096eddbb603ab735c11a7 (patch) | |
| tree | 30355c0022ae44d871229520b9cac5410e0b2710 /location/java/android | |
| parent | dad0f462ae6fee99840bbea910c810282bbc1c54 (diff) | |
Ensure LocationRequest's worksource defaults to null
Helps to make sure the service doesn't throw a
SecurityException for not having the UPDATE_DEVICE_STATS
permission.
Change-Id: I9be0302f1378d2c4441e6b7d5ce472ed0d5fbd80
Diffstat (limited to 'location/java/android')
| -rw-r--r-- | location/java/android/location/LocationRequest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/android/location/LocationRequest.java b/location/java/android/location/LocationRequest.java index ee748d39a219..5af29aef7071 100644 --- a/location/java/android/location/LocationRequest.java +++ b/location/java/android/location/LocationRequest.java @@ -146,7 +146,7 @@ public final class LocationRequest implements Parcelable { private long mExpireAt = Long.MAX_VALUE; // no expiry private int mNumUpdates = Integer.MAX_VALUE; // no expiry private float mSmallestDisplacement = 0.0f; // meters - private WorkSource mWorkSource = new WorkSource(); + private WorkSource mWorkSource = null; private boolean mHideFromAppOps = false; // True if this request shouldn't be counted by AppOps private String mProvider = LocationManager.FUSED_PROVIDER; // for deprecated APIs that explicitly request a provider |