コード例 #1
0
  private void updateMagnet() {
    if (mMagnet == null) {
      mMagnet = new Magnet(mActivity, sMovie.torrents.get(mSelectedQuality).url);
    }
    mMagnet.setUrl(sMovie.torrents.get(mSelectedQuality).url);

    if (!mMagnet.canOpen()) {
      mOpenMagnet.setVisibility(View.GONE);
    } else {
      mOpenMagnet.setVisibility(View.VISIBLE);
    }
  }
コード例 #2
0
 @OnClick(R.id.magnet)
 public void openMagnet() {
   mMagnet.open(mActivity);
 }