Merge "Only scan for wifi display when there is no active connections" into klp-dev
This commit is contained in:
@@ -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) {
|
private static boolean shouldShowWifiDisplay(WifiDisplay d, WifiDisplay activeDisplay) {
|
||||||
|
|||||||
Reference in New Issue
Block a user