Merge "Revert "wfd: release wifi p2p resource on disconnecting from WFD service."" into sc-dev am: c3c3fbbaa3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15008435 Change-Id: Ib18ba46b66640d930afea599c46c6dcd2b0328b9
This commit is contained in:
@@ -550,11 +550,6 @@ final class WifiDisplayController implements DumpUtils.Dump {
|
|||||||
|
|
||||||
private void disconnect() {
|
private void disconnect() {
|
||||||
mDesiredDevice = null;
|
mDesiredDevice = null;
|
||||||
mWifiP2pManager = null;
|
|
||||||
if (null != mWifiP2pChannel) {
|
|
||||||
mWifiP2pChannel.close();
|
|
||||||
mWifiP2pChannel = null;
|
|
||||||
}
|
|
||||||
updateConnection();
|
updateConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user