Merge "Check P2P channel before requesting network info" into udc-qpr-dev

This commit is contained in:
Treehugger Robot
2023-06-30 14:48:12 +00:00
committed by Android (Google) Code Review
2 changed files with 11 additions and 0 deletions

View File

@@ -617,6 +617,9 @@ public class WifiP2pSettings extends DashboardFragment
}
private void onDeviceAvailable() {
if (mWifiP2pManager == null || sChannel == null) {
return;
}
mWifiP2pManager.requestNetworkInfo(sChannel, networkInfo -> {
if (sChannel == null) return;
mWifiP2pManager.requestConnectionInfo(sChannel, wifip2pinfo -> {