修改播放时长问题,首页w2a两次问题。
This commit is contained in:
parent
72518e850e
commit
17b6f85f46
@ -528,7 +528,6 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
|
||||
String ddl = TIndicator.getString(ITItem.Constants_DeepLinkData_URL, "");
|
||||
LogUtils.d("clipString: ddl " + ddl);
|
||||
if (!ddl.isEmpty()) {
|
||||
w2aSelfAttribution(ddl);
|
||||
// 定义正则表达式
|
||||
// Pattern pattern = Pattern.compile("short_play_id=(d+).*");
|
||||
Pattern pattern = Pattern.compile("short_play_id=(\\d+)");
|
||||
@ -553,6 +552,7 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
|
||||
if (isRequestNotify) {
|
||||
return;
|
||||
}
|
||||
w2aSelfAttribution(ddl);
|
||||
jumpDetails();
|
||||
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
|
||||
|
||||
translates = AppUtils.getTranslates();
|
||||
if (translates != null) {
|
||||
viewBinding.viewVideoRecommend.tvRecommend.setText(AppUtils.replace(translates.getGleestream_recommond_title(),"90%"));
|
||||
viewBinding.viewVideoRecommend.tvRecommend.setText(AppUtils.replace(translates.getGleestream_recommond_title(), "90%"));
|
||||
viewBinding.viewVideoRecommend.tvWatchNowRecommend.setText(translates.getGleestream_recommond_watchnow());
|
||||
}
|
||||
}
|
||||
@ -285,7 +285,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
|
||||
if (currentPosition > 0) {
|
||||
LSQExampleCloseBean.YPZTestUnselect previousItem = vtGooglePlayerAdapter.getItems().get(currentPosition - 1);
|
||||
if (previousItem != null && previousItem.isIs_lock()) {
|
||||
viewBinding.viewLock.tvUnlockEpisode.setText(translates!=null?translates.getGleestream_lock():getString(R.string.unlock_episode_coins_last));
|
||||
viewBinding.viewLock.tvUnlockEpisode.setText(translates != null ? translates.getGleestream_lock() : getString(R.string.unlock_episode_coins_last));
|
||||
} else {
|
||||
if (translates != null) {
|
||||
viewBinding.viewLock.tvUnlockEpisode.setText(AppUtils.replace(translates.getGleestream_unlock_coins(), String.valueOf(item.getCoins())));
|
||||
@ -530,7 +530,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
|
||||
if (exampleRechargeDialogFragment != null) {
|
||||
exampleRechargeDialogFragment.dismiss();
|
||||
}
|
||||
PAYLoginHeaddefault.revealToast(translates!=null?translates.getGleestream_googlepay_success():getString(R.string.google_pay_success), 0);
|
||||
PAYLoginHeaddefault.revealToast(translates != null ? translates.getGleestream_googlepay_success() : getString(R.string.google_pay_success), 0);
|
||||
needRefresh = true;
|
||||
userViewModel.getUserInfo();
|
||||
// LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition);
|
||||
@ -657,6 +657,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
|
||||
}
|
||||
if (ITItem.Constants_Google_PLAYER_STATUS_FINISH_DETAIL.equals(event)) {
|
||||
LogUtils.d("播放到最后===");
|
||||
needRestart = true;
|
||||
if (viewBinding.viewPagerVtEpisode.getCurrentItem() == vtGooglePlayerAdapter.getItems().size() - 1) {
|
||||
//播放到最后
|
||||
vtViewModel.getDetailsRecommand();
|
||||
@ -685,7 +686,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
|
||||
viewBinding.viewPagerVtEpisode.setCurrentItem(nextPosition);
|
||||
}
|
||||
}
|
||||
needRestart = true;
|
||||
|
||||
if (activity_id != 0) {
|
||||
LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition - 1);
|
||||
if (item != null) {
|
||||
@ -772,7 +773,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
|
||||
if (vtGooglePlayerAdapter != null && !vtGooglePlayerAdapter.getItems().isEmpty()) {
|
||||
LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition);
|
||||
if (!item.isIs_lock()) {
|
||||
vtViewModel.uploadHistorySeconds(pageGoogleExoPlayerView().getlastProgress(), item.getShort_play_id(), item.getShort_play_video_id());
|
||||
vtViewModel.uploadHistorySeconds(needRestart ? 0 : pageGoogleExoPlayerView().getlastProgress(), item.getShort_play_id(), item.getShort_play_video_id());
|
||||
}
|
||||
|
||||
if (shortVideoInfo != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user