| | |
| | | import com.weikou.beibeivideo.R; |
| | | import com.weikou.beibeivideo.ui.MyRetainViewFragment; |
| | | import com.weikou.beibeivideo.util.ad.KSConstant; |
| | | import com.weikou.beibeivideo.util.video.DPEventCollectUtil; |
| | | import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; |
| | | |
| | | import java.util.Map; |
| | |
| | | public DYVideoFragment(FragmentManager fragmentManager) { |
| | | super(); |
| | | setName(DYNewsFragment.class.getName()); |
| | | this.fragmentManager=fragmentManager; |
| | | this.fragmentManager = fragmentManager; |
| | | } |
| | | |
| | | @Override |
| | |
| | | @Override |
| | | public void onDPVideoOver(Map<String, Object> map) { |
| | | log("onDPVideoOver"); |
| | | DPEventCollectUtil.playDrawVideo(getContext(), null, "dy", "home", false); |
| | | } |
| | | |
| | | @Override |
| | | public void onDPVideoCompletion(Map<String, Object> map) { |
| | | log("onDPVideoCompletion"); |
| | | super.onDPVideoCompletion(map); |
| | | // DPEventCollectUtil.playDrawVideo(getContext(), null, "dy", "home", true); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | Fragment fragment = mIDPWidget.getFragment(); |
| | | if (fragment != null) { |
| | | if(fragmentManager!=null) { |
| | | if (fragmentManager != null) { |
| | | fragmentManager.beginTransaction().add(R.id.fl_content, fragment).commitAllowingStateLoss(); |
| | | }else{ |
| | | } else { |
| | | getChildFragmentManager().beginTransaction().add(R.id.fl_content, fragment).commitAllowingStateLoss(); |
| | | } |
| | | } |