summaryrefslogtreecommitdiff
path: root/location/java/android
diff options
context:
space:
mode:
author David Castro <logophile@google.com> 2019-11-21 19:53:56 -0800
committer android-build-merger <android-build-merger@google.com> 2019-11-21 19:53:56 -0800
commitb69d94a847def4a6efe02f71ce65cecb804eff91 (patch)
tree39a5624b43f7fc83164c192a3a5719f12bbaf36d /location/java/android
parent65c96651257a5c3f439cc16097dcef40dccd7e18 (diff)
parent0c8d3399501226d44c87903bd1360f95c13184d3 (diff)
Merge "Updates the description of the provider parameter as per feedback in BUG:111695926." into qt-dev am: e3681d08e9
am: 0c8d339950 Change-Id: Iee45bfe51ead8d45eeccf7c0e362910f1ea59757
Diffstat (limited to 'location/java/android')
-rw-r--r--location/java/android/location/Location.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java
index 9c36d76cf370..db06399f7376 100644
--- a/location/java/android/location/Location.java
+++ b/location/java/android/location/Location.java
@@ -158,7 +158,10 @@ public class Location implements Parcelable {
* <p>By default time, latitude and longitude are 0, and the location
* has no bearing, altitude, speed, accuracy or extras.
*
- * @param provider the name of the provider that generated this location
+ * @param provider the source that provides the location. It can be of type
+ * {@link LocationManager#GPS_PROVIDER}, {@link LocationManager#NETWORK_PROVIDER},
+ * or {@link LocationManager#PASSIVE_PROVIDER}. You can also define your own
+ * provider string, in which case an empty string is a valid provider.
*/
public Location(String provider) {
mProvider = provider;