From a68c87eda84150b21f3d01511e60c720c6f6b695 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Tue, 19 Nov 2013 19:13:22 -0800 Subject: Only scan for wifi display when there is no active connections Bug: 11717053 Change-Id: I4ab73f6517fbfb8fcc131b89d0e934380dcf69e0 --- media/java/android/media/MediaRouter.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'media') diff --git a/media/java/android/media/MediaRouter.java b/media/java/android/media/MediaRouter.java index 525dc4f..3f1851d 100644 --- a/media/java/android/media/MediaRouter.java +++ b/media/java/android/media/MediaRouter.java @@ -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) { -- cgit v1.1