summaryrefslogtreecommitdiff
path: root/location/java/android
diff options
context:
space:
mode:
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);
}
/**