summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nate Jiang <qiangjiang@google.com> 2019-09-12 16:40:11 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-09-12 16:40:11 +0000
commit7be63cdbf67404dd9966d5c3e66697901fae0dde (patch)
treec695bfca142cda8e0c1fea921f69cc24f1aee33d
parenta0cdc6cbf0df59d3f996f032fd96565c29992247 (diff)
parent999d26c6181747c8cf1151bb0729d4b4a31886da (diff)
Merge "[NetworkSuggestion] allow apps in-place modify suggestion"
-rw-r--r--wifi/java/android/net/wifi/WifiManager.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java
index a37de00ce7de..0fa0ec7afd91 100644
--- a/wifi/java/android/net/wifi/WifiManager.java
+++ b/wifi/java/android/net/wifi/WifiManager.java
@@ -1732,13 +1732,12 @@ public class WifiManager {
* <li> When an app is uninstalled, all its suggested networks are discarded. If the device is
* currently connected to a suggested network which is being removed then the device will
* disconnect from that network.</li>
- * <li> No in-place modification of existing suggestions are allowed. Apps are expected to
- * remove suggestions using {@link #removeNetworkSuggestions(List)} and then add the modified
- * suggestion back using this API.</li>
+ * <li> In-place modification of existing suggestions are allowed.
+ * If the provided suggestions {@link WifiNetworkSuggestion#equals(Object)} any previously
+ * provided suggestions by the app. Previous suggestions will be updated</li>
*
* @param networkSuggestions List of network suggestions provided by the app.
* @return Status code for the operation. One of the STATUS_NETWORK_SUGGESTIONS_ values.
- * {@link WifiNetworkSuggestion#equals(Object)} any previously provided suggestions by the app.
* @throws {@link SecurityException} if the caller is missing required permissions.
*/
@RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE)