Add missing Deprecated annotations
Test: na Change-Id: I7b06dc4bf93494da849b0c5fb63e027d9fc3d06f
This commit is contained in:
@@ -708,6 +708,7 @@ public class LocationManager {
|
||||
* @deprecated Use {@link #getCurrentLocation(String, CancellationSignal, Executor, Consumer)}
|
||||
* instead as it does not carry a risk of extreme battery drain.
|
||||
*/
|
||||
@Deprecated
|
||||
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
|
||||
public void requestSingleUpdate(
|
||||
@NonNull Criteria criteria,
|
||||
@@ -737,6 +738,7 @@ public class LocationManager {
|
||||
* @deprecated Use {@link #getCurrentLocation(String, CancellationSignal, Executor, Consumer)}
|
||||
* instead as it does not carry a risk of extreme battery drain.
|
||||
*/
|
||||
@Deprecated
|
||||
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
|
||||
public void requestSingleUpdate(@NonNull String provider,
|
||||
@NonNull PendingIntent pendingIntent) {
|
||||
@@ -765,6 +767,7 @@ public class LocationManager {
|
||||
* @deprecated Use {@link #getCurrentLocation(String, CancellationSignal, Executor, Consumer)}
|
||||
* instead as it does not carry a risk of extreme battery drain.
|
||||
*/
|
||||
@Deprecated
|
||||
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
|
||||
public void requestSingleUpdate(@NonNull Criteria criteria,
|
||||
@NonNull PendingIntent pendingIntent) {
|
||||
|
||||
Reference in New Issue
Block a user