Update deprecation links in LocationManager to point to non-deprecated methods.

Test: this is a documentation update
Change-Id: I42318b722b9e9cf73e9efee60f43a1dfd5dbcbd8
This commit is contained in:
Austin O'Neil
2022-06-21 23:48:17 +00:00
parent 005f4eab6e
commit 1959247484

View File

@@ -2394,8 +2394,8 @@ public class LocationManager {
* @return true if the listener was successfully added
* @throws SecurityException if the ACCESS_FINE_LOCATION permission is not present
*
* @deprecated use {@link #registerGnssStatusCallback(GnssStatus.Callback)} instead. No longer
* supported in apps targeting S and above.
* @deprecated Use {@link #registerGnssStatusCallback(GnssStatus.Callback, Handler)} or {@link
* #registerGnssStatusCallback(Executor, GnssStatus.Callback)} instead.
*/
@Deprecated
@RequiresPermission(ACCESS_FINE_LOCATION)
@@ -2505,7 +2505,8 @@ public class LocationManager {
/**
* No-op method to keep backward-compatibility.
*
* @deprecated Use {@link #addNmeaListener} instead.
* @deprecated Use {@link #addNmeaListener(OnNmeaMessageListener, Handler)} or {@link
* #addNmeaListener(Executor, OnNmeaMessageListener)} instead.
*/
@Deprecated
@RequiresPermission(ACCESS_FINE_LOCATION)