Add javadocs update on Android R crash

Bug: 233111834
Test: na
Change-Id: I017113a22295106bbca3844761a512cd6ae057e1
This commit is contained in:
Soonil Nagarkar
2022-06-21 16:23:37 -07:00
parent 5d5f191c47
commit e60263fae5

View File

@@ -2667,6 +2667,13 @@ public class LocationManager {
*
* <p>Not all GNSS chipsets support measurements updates, see {@link #getGnssCapabilities()}.
*
* <p class="caution">On Android R devices that have not yet upgraded to Android R QPR1, using
* this API will cause unavoidable crashes in the client application when GNSS measurements
* are received. If a client needs to receive GNSS measurements on Android R devices that have
* not been upgraded to QPR1, clients are instead encouraged to use
* <a href="https://developer.android.com/reference/androidx/core/location/LocationManagerCompat#registerGnssMeasurementsCallback(android.location.LocationManager,java.util.concurrent.Executor,android.location.GnssMeasurementsEvent.Callback)">LocationManagerCompat.registerGnssMeasurementsCallback()</a>
* from the compat libraries instead to avoid this crash.
*
* @param executor the executor that the callback runs on
* @param callback the callback to register
* @return {@code true} always