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

am: 963fadf871

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

View File

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