summaryrefslogtreecommitdiff
path: root/location/java/android
diff options
context:
space:
mode:
author Soonil Nagarkar <sooniln@google.com> 2019-10-17 00:37:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-10-17 00:37:34 +0000
commit57514fc189419350bc99fb691ce67f7b09cf40cd (patch)
tree520816816c7d4febbe2bd21ac14f819041961b44 /location/java/android
parentab05946906e544405efff80660070d836cdf0b04 (diff)
parentf5306d433a1e20698ab6b610ee429cd39ce1990f (diff)
Merge "Move registerGnssMeasurementsCallback onto direct executor"
Diffstat (limited to 'location/java/android')
-rw-r--r--location/java/android/location/LocationManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java
index 0b3e1c3f57d3..70bfb5428d3c 100644
--- a/location/java/android/location/LocationManager.java
+++ b/location/java/android/location/LocationManager.java
@@ -1971,7 +1971,7 @@ public class LocationManager {
public void removeGpsMeasurementListener(GpsMeasurementsEvent.Listener listener) {}
/**
- * Registers a GPS Measurement callback.
+ * Registers a GPS Measurement callback which will run on a binder threadS.
*
* @param callback a {@link GnssMeasurementsEvent.Callback} object to register.
* @return {@code true} if the callback was added successfully, {@code false} otherwise.
@@ -1983,7 +1983,7 @@ public class LocationManager {
@RequiresPermission(ACCESS_FINE_LOCATION)
public boolean registerGnssMeasurementsCallback(
@NonNull GnssMeasurementsEvent.Callback callback) {
- return registerGnssMeasurementsCallback(callback, null);
+ return registerGnssMeasurementsCallback(Runnable::run, callback);
}
/**