title: android addNetworkSuggestion doesn't works
body: <p>i'm coding a POC to connect to specific WIFI
  It works well for device &lt; 29, but doesn't for the others</p>
  <p>I get &quot;Suggestion Added&quot; in the logcat but nothing is displayed on the screen, i'm working on an android MI 9T pro</p>
  <p>The same test works for a device on android 28 so my credentials are OK :)</p>
  <pre><code>            val networkSSID = &quot;XXX&quot;
              val networkPass = &quot;XXX&quot;
              if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.Q) {
                  // doesn't show suggestion even if have &quot;Suggestion Added&quot; in the log
                  val networkSuggestion1 = WifiNetworkSuggestion.Builder()
                      .setSsid(networkSSID)
                      .setWpa2Passphrase(networkPass)
                      .build()
  
                  val suggestionsList = listOf(networkSuggestion1)
                  var status = wifiManager?.addNetworkSuggestions(suggestionsList)
                  Log.i(&quot;WifiNetworkSuggestion&quot;, &quot;Adding Network suggestions status is $status&quot;)
                  if (status == WifiManager.STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_DUPLICATE) {
                      Log.d(TAG, &quot;Suggestion Update Needed&quot;)
                      status = wifiManager?.removeNetworkSuggestions(suggestionsList)
                      Log.i(&quot;WifiNetworkSuggestion&quot;, &quot;Removing Network suggestions status is $status&quot;)
                      status = wifiManager?.addNetworkSuggestions(suggestionsList)
                  }
                  if (status == WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS) {
                      Log.d(TAG, &quot;Suggestion Added&quot;)
                  }
              } else {
                  // Works perfectly good
                  val wifiManager = context?.getSystemService(WIFI_SERVICE) as WifiManager?
                  if (havePermission) {
                      var found = false
                      for (config in wifiManager?.configuredNetworks!!) {
                          if (config.SSID == String.format(&quot;\&quot;%s\&quot;&quot;, wifi.SSID)) {
                              wifiManager?.enableNetwork(config.networkId, true)
                              found = true
                              break
                          }
                      }
  
                      if (!found) {
                          val wifiConfiguration = WifiConfiguration()
                          wifiConfiguration.SSID = String.format(&quot;\&quot;%s\&quot;&quot;, networkSSID)
                          wifiConfiguration.preSharedKey = String.format(&quot;\&quot;%s\&quot;&quot;, networkPass)
  
                          val wifiID = wifiManager?.addNetwork(wifiConfiguration)
                          if (wifiID != null) {
                              wifiManager?.enableNetwork(wifiID, true)
                          }
                      }
                  }
              }
  </code></pre>