From 4146fb0bcffb4830638f8d0c90b0dcff6970a8c5 Mon Sep 17 00:00:00 2001 From: "Nate(Qiang) Jiang" Date: Wed, 26 Feb 2020 10:28:43 -0800 Subject: [PATCH] Add Doc about app disable or netowrk reset will remove suggeestion Bug: 150247605 Test: build Change-Id: Iaeec1404311bb3eea1d0be83d20a4bf0c8962d61 --- wifi/java/android/net/wifi/WifiManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 7d4b63285eea3..d97379e5fea43 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -1881,9 +1881,11 @@ public class WifiManager { * NOTE: *
  • These networks are just a suggestion to the platform. The platform will ultimately * decide on which network the device connects to.
  • - *
  • 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.
  • + *
  • When an app is uninstalled or disabled, 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.
  • + *
  • If user reset network settings, all added suggestions will be discarded. Apps can use + * {@link #getNetworkSuggestions()} to check if their suggestions are in the device.
  • *
  • 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