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

Commit 6f46672f authored by Chong Zhang's avatar Chong Zhang Committed by The Android Automerger
Browse files

Only scan for wifi display when there is no active connections

Bug: 11717053
Change-Id: I4ab73f6517fbfb8fcc131b89d0e934380dcf69e0
parent 28b6d382
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1343,12 +1343,6 @@ public class MediaRouter {
                }
            }
        }

        // Don't scan if we're already connected to a wifi display,
        // the scanning process can cause a hiccup with some configurations.
        if (wantScan && activeDisplay != null && sStatic.mCanConfigureWifiDisplays) {
            sStatic.mDisplayService.scanWifiDisplays();
        }
    }

    private static boolean shouldShowWifiDisplay(WifiDisplay d, WifiDisplay activeDisplay) {