I use WifiNetworkSuggestion to connect programmatically my app to my hotspot, but when I tried to disconnect from this connection programmatically I used removeNetworkSuggestions like the doc mention
Remove some or all of the network suggestions that were previously provided by the app. 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.
I found that it's a bug https://issuetracker.google.com/issues/140398818, so my question is : there's no way right now to disconnect from a wifi programmatically on Android 10 ??
Thank's