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

Commit cf083854 authored by guotao.deng's avatar guotao.deng Committed by Roman Birg
Browse files

Should use scan flag, or it will not scan device.

Change-Id: I74f83e2751743236e34ae5422dc7539584e71589
parent ae032eb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ public class CastControllerImpl implements CastController {
        }
        if (mDiscovering) {
            mMediaRouter.addCallback(ROUTE_TYPE_REMOTE_DISPLAY, mMediaCallback,
                    MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);
                    MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN);
            mCallbackRegistered = true;
        } else if (mCallbacks.size() != 0) {
            mMediaRouter.addCallback(ROUTE_TYPE_REMOTE_DISPLAY, mMediaCallback,