From 7c04c8301daa9d7b6d9bf5bbe5b29b389d3f45c3 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 08 五月 2021 12:50:28 +0800 Subject: [PATCH] 3.9.5完善 --- BuWanVideo/AndroidManifest.xml | 4 +++- BuWanVideo/src/com/weikou/beibeivideo/ui/mine/PPTVPlayFragment.java | 14 +++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/BuWanVideo/AndroidManifest.xml b/BuWanVideo/AndroidManifest.xml index 1078858..53e6d14 100644 --- a/BuWanVideo/AndroidManifest.xml +++ b/BuWanVideo/AndroidManifest.xml @@ -122,6 +122,7 @@ <activity android:name="com.weikou.beibeivideo.ui.media.VideoDetailActivity" android:configChanges="orientation|screenSize|keyboardHidden" + android:hardwareAccelerated="true" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@style/AppTabTheme2" @@ -130,6 +131,7 @@ <activity android:name="com.weikou.beibeivideo.ui.media.VideoDetailActivity2" android:configChanges="orientation|screenSize|keyboardHidden" + android:hardwareAccelerated="true" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@style/AppTabTheme2" @@ -305,7 +307,7 @@ android:value="570f28a578d6e12cba6f7f200b8d1c83"></meta-data> <meta-data android:name="UMENG_CHANNEL" - android:value="qq"></meta-data> + android:value="huawei"></meta-data> <provider diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/mine/PPTVPlayFragment.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/mine/PPTVPlayFragment.java index b8df095..3f33594 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/mine/PPTVPlayFragment.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/mine/PPTVPlayFragment.java @@ -738,7 +738,10 @@ } if (state.isShowInterstitialAd()) showInterstitialAd(); - startPlayAd(); + if (state.isShowPreVideoAd()) + startPlayAd(); + else + adPlayFinish(); } } else { if (AdUtil.isGetPPTVNoAdReward(BeibeiVideoApplication.application)) { @@ -1072,6 +1075,15 @@ private Integer playPosition; //鏄惁鏄剧ず鎻掑睆骞垮憡 private boolean showInterstitialAd; + private boolean showPreVideoAd; + + public boolean isShowPreVideoAd() { + return showPreVideoAd; + } + + public void setShowPreVideoAd(boolean showPreVideoAd) { + this.showPreVideoAd = showPreVideoAd; + } public boolean isShowInterstitialAd() { return showInterstitialAd; -- Gitblit v1.8.0