Skip to content

Commit 59c53c6

Browse files
author
Jeff Brown
committed
Don't auto-discover peers until scan requested.
Change-Id: I4ad08873567a5ac86e9bd46abd2375b183e2e95b
1 parent 0f68d16 commit 59c53c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

services/java/com/android/server/display/WifiDisplayController.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ public void onSuccess() {
179179
if (mWfdEnabling) {
180180
mWfdEnabling = false;
181181
setWfdEnabled(true);
182-
discoverPeers();
183182
}
184183
}
185184

@@ -511,9 +510,7 @@ private void handleStateChanged(boolean enabled) {
511510
if (mWifiP2pEnabled != enabled) {
512511
mWifiP2pEnabled = enabled;
513512
if (enabled) {
514-
if (mWfdEnabled) {
515-
discoverPeers();
516-
} else {
513+
if (!mWfdEnabled) {
517514
enableWfd();
518515
}
519516
} else {

0 commit comments

Comments
 (0)