summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2013-11-19 19:13:22 -0800
committerChong Zhang <chz@google.com>2013-11-19 19:56:16 -0800
commita68c87eda84150b21f3d01511e60c720c6f6b695 (patch)
tree90b6fc277371243e020877f0428962e1fa68f5dd
parent245408d29018fee4b1231e52f5da1edcc3283c4a (diff)
downloadframeworks_base-a68c87eda84150b21f3d01511e60c720c6f6b695.zip
frameworks_base-a68c87eda84150b21f3d01511e60c720c6f6b695.tar.gz
frameworks_base-a68c87eda84150b21f3d01511e60c720c6f6b695.tar.bz2
Only scan for wifi display when there is no active connections
Bug: 11717053 Change-Id: I4ab73f6517fbfb8fcc131b89d0e934380dcf69e0
-rw-r--r--media/java/android/media/MediaRouter.java6
1 files changed, 0 insertions, 6 deletions
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) {