Merge "Check P2P channel before requesting network info" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dc98948cc1
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user