Merge "wfd: release wifi p2p resource on disconnecting from WFD service." into sc-dev am: 492a8e6cfe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14948153 Change-Id: I342bd9de19a51b315012e20b6fdcf21a202fd614
This commit is contained in:
@@ -550,6 +550,11 @@ 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