Beispiel #1
0
  @Override
  protected View initView() {
    View view = View.inflate(UIUtils.getContext(), R.layout.item_app_info, null);

    // View注入
    ViewUtils.inject(this, view);

    // 设置点击事件
    mPcvProgress.setOnClickListener(this);

    mDownloadManager = DownloadManager.getInstance(); // 初始化

    return view;
  }
Beispiel #2
0
  /** 检查下载状态 */
  public void checkDownloadState() {
    mDownloadBean = DownloadManager.getInstance().getCurrentState(mData);

    safeRefreshView(mDownloadBean);
  }