summaryrefslogtreecommitdiff
path: root/framework/java
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2017-03-22 22:53:18 -0700
committerJakub Pawlowski <jpawlowski@google.com>2017-03-29 16:34:07 +0000
commit9c63d28a1fa55e05b36e4fb90eedcda6de409745 (patch)
treeaa74f7514eefabc0eb399e34ecb2e1be06d3b9ef /framework/java
parent1bafa47caf7b1f7584774ea7a479a21d1d79f197 (diff)
Bluetooth: fix comment wording
Test: manual Bug: 30622771 Change-Id: I5a589c98553f35248b0d95d332e9f35774075b24
Diffstat (limited to 'framework/java')
-rw-r--r--framework/java/android/bluetooth/le/AdvertisingSetParameters.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/java/android/bluetooth/le/AdvertisingSetParameters.java b/framework/java/android/bluetooth/le/AdvertisingSetParameters.java
index d36c0d676f..3e13ad34f0 100644
--- a/framework/java/android/bluetooth/le/AdvertisingSetParameters.java
+++ b/framework/java/android/bluetooth/le/AdvertisingSetParameters.java
@@ -253,10 +253,10 @@ public final class AdvertisingSetParameters implements Parcelable {
/**
* Set whether the advertisement type should be connectable or
* non-connectable.
- * Legacy advertisements can be both connectable and scannable. Other
- * advertisements can be connectable only if not scannable.
+ * Legacy advertisements must be both connectable and scannable. Nonlegacy
+ * advertisements can be only scannable or only connectable.
* @param connectable Controls whether the advertisment type will be
- * connectable (true) or non-connectable (false).
+ * connectable (true) or nonconnectable (false).
*/
public Builder setConnectable(boolean connectable) {
this.connectable = connectable;
@@ -264,11 +264,11 @@ public final class AdvertisingSetParameters implements Parcelable {
}
/**
- * Set whether the advertisement type should be scannable
- * Legacy advertisements can be both connectable and scannable. Other
- * advertisements can be scannable only if not connectable.
+ * Set whether the advertisement type should be scannable.
+ * Legacy advertisements must be both connectable and scannable. Nonlegacy
+ * advertisements can be only scannable or only connectable.
* @param scannable Controls whether the advertisment type will be
- * scannable (true) or non-scannable (false).
+ * scannable (true) or nonscannable (false).
*/
public Builder setScannable(boolean scannable) {
this.scannable = scannable;