Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FongMi committed Aug 27, 2023
1 parent aa72bb6 commit 7410303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ private void getDetail() {

private void getDetail(Vod item) {
getIntent().putExtra("key", item.getSiteKey());
getIntent().putExtra("pic", item.getVodPic());
getIntent().putExtra("id", item.getVodId());
mBinding.scroll.scrollTo(0, 0);
mClock.setCallback(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ private void getDetail() {

private void getDetail(Vod item) {
getIntent().putExtra("key", item.getSiteKey());
getIntent().putExtra("pic", item.getVodPic());
getIntent().putExtra("id", item.getVodId());
mBinding.swipeLayout.setRefreshing(true);
mBinding.swipeLayout.setEnabled(false);
Expand Down Expand Up @@ -477,7 +478,6 @@ private void setOther(TextView view, Vod item) {
private void getPlayer(Flag flag, Episode episode, boolean replay) {
mBinding.control.title.setText(getString(R.string.detail_title, mBinding.name.getText(), episode.getName()));
mViewModel.playerContent(getKey(), flag.getFlag(), episode.getUrl());
mBinding.qualityText.setVisibility(View.GONE);
updateHistory(episode, replay);
showProgress();
hidePreview();
Expand All @@ -501,6 +501,7 @@ public void onItemClick(Flag item, boolean force) {
if (item.isActivated()) return;
mFlagAdapter.setActivated(item);
mBinding.flag.scrollToPosition(mFlagAdapter.getPosition());
mBinding.qualityText.setVisibility(View.GONE);
mBinding.quality.setVisibility(View.GONE);
setEpisodeAdapter(item.getEpisodes());
seamless(item, force);
Expand Down

0 comments on commit 7410303

Please sign in to comment.