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

This commit is contained in:
TreeHugger Robot
2019-05-28 13:02:52 +00:00
committed by Android (Google) Code Review

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();