summaryrefslogtreecommitdiffstats
path: root/location/java
diff options
context:
space:
mode:
authorDavid Christie <dnchrist@google.com>2013-08-15 16:01:42 -0700
committerDavid Christie <dnchrist@google.com>2013-08-15 16:01:42 -0700
commitdef20a3350ce239b929ef0ebbbf913cc0b42cf5f (patch)
treec09d9a2a07b1436b649ff4f0226f8ac5fac3b299 /location/java
parent6bab49deaa96ddb0c427c1e2ab127608e5a8d93b (diff)
downloadframeworks_base-def20a3350ce239b929ef0ebbbf913cc0b42cf5f.zip
frameworks_base-def20a3350ce239b929ef0ebbbf913cc0b42cf5f.tar.gz
frameworks_base-def20a3350ce239b929ef0ebbbf913cc0b42cf5f.tar.bz2
Use default class loader when creating a LocationRequest from Parcel.
This seems to be the standard usage, and there are rare reports of requestLocationUpdates giving NullPointerExceptions on the first call to requestLocationUpdates but not on subsequent calls (b/10207898). Change-Id: If7a873fba5a2cd77b836ff3fda89105da20104ac
Diffstat (limited to 'location/java')
-rw-r--r--location/java/android/location/LocationRequest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/android/location/LocationRequest.java b/location/java/android/location/LocationRequest.java
index ee748d39..a33a1d8 100644
--- a/location/java/android/location/LocationRequest.java
+++ b/location/java/android/location/LocationRequest.java
@@ -564,7 +564,7 @@ public final class LocationRequest implements Parcelable {
request.setHideFromAppOps(in.readInt() != 0);
String provider = in.readString();
if (provider != null) request.setProvider(provider);
- WorkSource workSource = in.readParcelable(WorkSource.class.getClassLoader());
+ WorkSource workSource = in.readParcelable(null);
if (workSource != null) request.setWorkSource(workSource);
return request;
}