admin
2021-02-04 34a18e852c1e3b5da43da02e6bdeab6b28a1fdd2
BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity2.java
@@ -740,9 +740,6 @@
                    @Override
                    public void onStart() {
                        super.onStart();
                        // if (BeibeiConstant.DEBUG)
                        // Toast.makeText(VideoDetailActivity2.this, "onStart",
                        // Toast.LENGTH_SHORT).show();
                    }
                    @Override
@@ -750,9 +747,6 @@
                                          String responseString, Throwable throwable) {
                        super.onFailure(statusCode, headers, responseString,
                                throwable);
                        // if (BeibeiConstant.DEBUG)
                        // Toast.makeText(VideoDetailActivity2.this, "onFailure",
                        // Toast.LENGTH_SHORT).show();
                        if (progressDialog.isShowing()) {
                            progressDialog.dismiss();
                        }
@@ -769,19 +763,6 @@
                                                 Header[] headers, JSONObject jsonObject)
                            throws Exception {
                        boolean pptv = true;
                        if (pptv) {
                            fl_pptv.setVisibility(View.VISIBLE);
                            ll_other.setVerticalGravity(View.GONE);
                            getSupportFragmentManager().beginTransaction().replace(R.id.fl_pptv, new PPTVPlayFragment()).commit();
                            if (progressDialog.isShowing()) {
                                progressDialog.dismiss();
                            }
                            return;
                        } else {
                            fl_pptv.setVisibility(View.GONE);
                            ll_other.setVisibility(View.VISIBLE);
                        }
                        // if (BeibeiConstant.DEBUG)
                        // Toast.makeText(VideoDetailActivity2.this,
@@ -796,6 +777,22 @@
                            e.printStackTrace();
                        }
                        if (jsonObject.getBoolean("IsPost")) {
                            JSONObject data = jsonObject.optJSONObject("Data");
                            boolean pptv = data.optBoolean("pptv", false);
                            if (pptv) {
                                fl_pptv.setVisibility(View.VISIBLE);
                                ll_other.setVerticalGravity(View.GONE);
                                getSupportFragmentManager().beginTransaction().replace(R.id.fl_pptv, new PPTVPlayFragment()).commit();
                                if (progressDialog.isShowing()) {
                                    progressDialog.dismiss();
                                }
                                return;
                            } else {
                                fl_pptv.setVisibility(View.GONE);
                                ll_other.setVisibility(View.VISIBLE);
                            }
                            findViewById(R.id.fragment_video_detail_container)
                                    .setVisibility(View.VISIBLE);
                            findViewById(R.id.fragment_video_episode_container)