Skip to content

Commit 56925d6

Browse files
committed
Always update peer list in display controller
Display controller should always stay in sync with peer list to avoid showing incorrect available status on peers which would cause connectivity issues. Bug: 7268307 Change-Id: If04644339c1ee3f567939e4441dd6f6a45e4179a
1 parent 30ed33b commit 56925d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,9 @@ private void handleStateChanged(boolean enabled) {
639639
}
640640

641641
private void handlePeersChanged() {
642-
if (mWfdEnabled) {
643-
requestPeers();
644-
}
642+
// Even if wfd is disabled, it is best to get the latest set of peers to
643+
// keep in sync with the p2p framework
644+
requestPeers();
645645
}
646646

647647
private void handleConnectionChanged(NetworkInfo networkInfo) {

0 commit comments

Comments
 (0)