Merge "CastTile: Set media router group id to sync cast status" into qt-dev

am: 963fadf871

Change-Id: I444b8875ba807aa1f1fe6237f42bc264d98438a4
This commit is contained in:
Kyunglyul Hyun
2019-05-28 06:16:50 -07:00
committed by android-build-merger

View File

@@ -71,6 +71,7 @@ public class CastControllerImpl implements CastController {
public CastControllerImpl(Context context) {
mContext = context;
mMediaRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
mMediaRouter.setRouterGroupId(MediaRouter.MIRRORING_GROUP_ID);
mProjectionManager = (MediaProjectionManager)
context.getSystemService(Context.MEDIA_PROJECTION_SERVICE);
mProjection = mProjectionManager.getActiveProjectionInfo();