admin
2021-02-20 f8a5683d08f2e6f832578b2fd5c795888ddcae64
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/WatchHistoryActivity.java
@@ -21,11 +21,12 @@
import com.lcjian.library.util.FragmentSwitchHelper;
import com.weikou.beibeivideo.R;
import com.weikou.beibeivideo.ui.BaseActivity;
import com.weikou.beibeivideo.ui.recent.DownloadAdapter2;
import com.weikou.beibeivideo.ui.recent.OfflineCacheFragment2;
import com.weikou.beibeivideo.ui.recent.WatchHistoryFragment;
public class WatchHistoryActivity extends FragmentActivity implements
public class WatchHistoryActivity extends BaseActivity implements
        DownloadAdapter2.IGetDeleteCallback, OnClickListener {
    private FragmentSwitchHelper mFragmentSwitchHelper;
@@ -44,25 +45,7 @@
        super.onCreate(arg0);
        setContentView(R.layout.activity_watch_history);
        /*
         * 计算状态栏高度并设置
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
                    WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            int result = 0;
            int resourceId = getResources().getIdentifier("status_bar_height",
                    "dimen", "android");
            if (resourceId > 0) {
                result = getResources().getDimensionPixelSize(resourceId);
            }
            LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,
                    result);
            findViewById(R.id.v_status_bar).setLayoutParams(params);
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        initStatusBar();
        tv_top_bar_right = findViewById(R.id.tv_top_bar_right);
        tv_top_bar_right.setText("编辑");