@Override
public MediaRouteControllerDialogFragment onCreateControllerDialogFragment() {
return new MediaRouteControllerDialogFragment() {
final SystemVisibilitySaver mVisibilitySaver = new SystemVisibilitySaver();
@Override
public Dialog onCreateDialog(Bundle saved) {
mVisibilitySaver.saveSystemVisibility(getActivity());
return new MediaRouteControllerDialog(getActivity());
}
@Override
public void onStop() {
super.onStop();
mVisibilitySaver.restoreSystemVisibility(getActivity());
}
};
}
java类android.support.v7.app.MediaRouteControllerDialog的实例源码
ChromeMediaRouteDialogFactory.java 文件源码
项目:Vafrinn
阅读 32
收藏 0
点赞 0
评论 0
SampleMediaRouterActivity.java 文件源码
项目:V.FlyoutTest
阅读 29
收藏 0
点赞 0
评论 0
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Be sure to call the super class.
super.onCreateOptionsMenu(menu);
// Inflate the menu and configure the media router action provider.
getMenuInflater().inflate(R.menu.sample_media_router_menu, menu);
MenuItem mediaRouteMenuItem = menu.findItem(R.id.media_route_menu_item);
MediaRouteActionProvider mediaRouteActionProvider =
(MediaRouteActionProvider)MenuItemCompat.getActionProvider(mediaRouteMenuItem);
mediaRouteActionProvider.setRouteSelector(mSelector);
mediaRouteActionProvider.setDialogFactory(new MediaRouteDialogFactory() {
@Override
public MediaRouteControllerDialogFragment onCreateControllerDialogFragment() {
return new MediaRouteControllerDialogFragment() {
@Override
public MediaRouteControllerDialog onCreateControllerDialog(
Context context, Bundle savedInstanceState) {
mControllerDialog = new SampleMediaRouteControllerDialog(
context, mSessionManager, mPlayer);
return mControllerDialog;
}
};
}
});
// Return true to show the menu.
return true;
}
MediaRouteControllerDialogFactory.java 文件源码
项目:chromium-for-android-56-debug-video
阅读 31
收藏 0
点赞 0
评论 0
@Override
public Dialog onCreateDialog(Bundle saved) {
mVisibilitySaver.saveSystemVisibility(getActivity());
return new MediaRouteControllerDialog(getActivity());
}
MediaRouteControllerDialogFactory.java 文件源码
项目:AndroidChromium
阅读 32
收藏 0
点赞 0
评论 0
@Override
public Dialog onCreateDialog(Bundle saved) {
mVisibilitySaver.saveSystemVisibility(getActivity());
return new MediaRouteControllerDialog(getActivity());
}
MediaRouteControllerDialogFactory.java 文件源码
项目:365browser
阅读 30
收藏 0
点赞 0
评论 0
@Override
public Dialog onCreateDialog(Bundle saved) {
mVisibilitySaver.saveSystemVisibility(getActivity());
return new MediaRouteControllerDialog(getActivity());
}
CustomMediaRouteControllerDialogFragment.java 文件源码
项目:Popeens-DSub
阅读 25
收藏 0
点赞 0
评论 0
@Override
public MediaRouteControllerDialog onCreateControllerDialog(Context context, Bundle savedInstanceState) {
return new MediaRouteControllerDialog(context, ThemeUtil.getThemeRes(context));
}