Merge "CastTile: Set media router group id to sync cast status" into qt-dev am: 963fadf871 am: 771f1b5442

am: d9e553e818

Change-Id: I4e0d294a101b1a56edf7e3fc99167a83f13dbd28
This commit is contained in:
Kyunglyul Hyun
2019-05-28 06:26:52 -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();