|
|
|
|
@ -111,6 +111,7 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
private int toggleCount; |
|
|
|
|
private Runnable mR1; |
|
|
|
|
private Runnable mR2; |
|
|
|
|
private Runnable mR3; |
|
|
|
|
|
|
|
|
|
public static void push(FragmentActivity activity, Uri uri) { |
|
|
|
|
if ("smb".equals(uri.getScheme()) || "http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) { |
|
|
|
|
@ -235,6 +236,7 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
mBroken = new ArrayList<>(); |
|
|
|
|
mR1 = this::hideControl; |
|
|
|
|
mR2 = this::setTraffic; |
|
|
|
|
mR3 = this::showEmpty; |
|
|
|
|
setRecyclerView(); |
|
|
|
|
setVideoView(); |
|
|
|
|
setViewModel(); |
|
|
|
|
@ -385,12 +387,17 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
if (isFromCollect()) { |
|
|
|
|
finish(); |
|
|
|
|
} else if (getName().isEmpty()) { |
|
|
|
|
mBinding.progressLayout.showEmpty(); |
|
|
|
|
showEmpty(); |
|
|
|
|
} else { |
|
|
|
|
checkSearch(false); |
|
|
|
|
App.post(mR3, 5000); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void showEmpty() { |
|
|
|
|
mBinding.progressLayout.showEmpty(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setDetail(Vod item) { |
|
|
|
|
mBinding.progressLayout.showContent(); |
|
|
|
|
mBinding.video.setTag(item.getVodPic()); |
|
|
|
|
@ -985,6 +992,7 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
mSearchAdapter.addAll(mSearchAdapter.size(), items); |
|
|
|
|
mBinding.search.setVisibility(View.VISIBLE); |
|
|
|
|
if (isInitAuto()) nextSite(); |
|
|
|
|
App.removeCallbacks(mR3); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setSearch(Vod item) { |
|
|
|
|
@ -1213,6 +1221,6 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
super.onDestroy(); |
|
|
|
|
mPlayers.release(); |
|
|
|
|
RefreshEvent.history(); |
|
|
|
|
App.removeCallbacks(mR1, mR2); |
|
|
|
|
App.removeCallbacks(mR1, mR2, mR3); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|