From 9707dc2136f659de3288917e9ae3b920bdb45013 Mon Sep 17 00:00:00 2001 From: "Nate(Qiang) Jiang" Date: Wed, 20 Nov 2019 18:52:47 -0800 Subject: [PATCH] [NetworkSuggestion] change comments to fit the disconnect behavior Bug: 137582811 Test: build Change-Id: I0ee13a98c74e25cac9b94ee16703e291a2ff2610 --- wifi/java/android/net/wifi/WifiManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 2a0211b77450f..820f33bdcdf67 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -1835,8 +1835,9 @@ public class WifiManager { /** * Remove some or all of the network suggestions that were previously provided by the app. - * If the current network is a suggestion being removed and if it was only provided by this app - * and is not a saved network then the framework will immediately disconnect. + * If one of the suggestions being removed was used to establish connection to the current + * network, then the device will immediately disconnect from that network. + * * See {@link WifiNetworkSuggestion} for a detailed explanation of the parameters. * See {@link WifiNetworkSuggestion#equals(Object)} for the equivalence evaluation used. *