Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8e8e73b authored by Piotr Wilczyński's avatar Piotr Wilczyński Committed by Gerrit Code Review
Browse files

Merge "Fix NullPointerException for WifiDisplayController." into main

parents 942d47b0 23bdc16c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1062,8 +1062,10 @@ final class WifiDisplayController implements DumpUtils.Dump {
    }

    private static WifiDisplay createWifiDisplay(WifiP2pDevice device) {
        WifiP2pWfdInfo wfdInfo = device.getWfdInfo();
        boolean isSessionAvailable = wfdInfo != null && wfdInfo.isSessionAvailable();
        return new WifiDisplay(device.deviceAddress, device.deviceName, null,
                true, device.getWfdInfo().isSessionAvailable(), false);
                true, isSessionAvailable, false);
    }

    private final BroadcastReceiver mWifiP2pReceiver = new BroadcastReceiver() {