From 214f9edd2fe20c20e32630e9b5380cc6271c1eb7 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 27 三月 2021 16:51:13 +0800 Subject: [PATCH] 白色背景修改 --- BuWanVideo/src/com/weikou/beibeivideo/ui/category/SpecificDetailFragment.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/category/SpecificDetailFragment.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/category/SpecificDetailFragment.java index 0953aa2..63c8252 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/category/SpecificDetailFragment.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/category/SpecificDetailFragment.java @@ -68,8 +68,9 @@ @Override public void onCreateView(View contentView, Bundle savedInstanceState) { Bundle bundle = getArguments(); - id = bundle.getString("id"); - rl_specific_detail = contentView.findViewById(R.id.rl_specific_detail); + if (bundle != null) + id = bundle.getString("id"); + rl_specific_detail = contentView.findViewById(R.id.rl_specific_detail); rv_specific_detail = contentView .findViewById(R.id.rv_specific_detail); @@ -81,15 +82,15 @@ specifi_detail_top = LayoutInflater.from(rv_specific_detail.getContext()).inflate( R.layout.specific_detail_top, null); - specific_detail_banner = specifi_detail_top + specific_detail_banner = specifi_detail_top .findViewById(R.id.specific_detail_banner); - specific_detail_name = specifi_detail_top + specific_detail_name = specifi_detail_top .findViewById(R.id.specific_detail_name); - specific_detail_introduction = specifi_detail_top + specific_detail_introduction = specifi_detail_top .findViewById(R.id.specific_detail_introduction); mVideoInfos = new ArrayList<>(); - mSpecificMovieAdapter = new VideoCloumn1Adapter(getActivity(), mVideoInfos,"special"); + mSpecificMovieAdapter = new VideoCloumn1Adapter(getActivity(), mVideoInfos, "special"); mSpecificMovieAdapter.setHeaderView(specifi_detail_top); rl_specific_detail.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override -- Gitblit v1.8.0