Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
5a87a336
Commit
5a87a336
authored
Aug 19, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开屏时间改为5秒
parent
e853fb0e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
build.gradle
video/app/build.gradle
+2
-2
SplashManager.kt
...n/java/com/duben/speedplayletu/ad/splash/SplashManager.kt
+4
-2
SplashActivity.kt
...va/com/duben/speedplayletu/ui/activitys/SplashActivity.kt
+4
-2
CycleProgress.java
...ava/com/duben/speedplayletu/ui/widgets/CycleProgress.java
+1
-1
No files found.
video/app/build.gradle
View file @
5a87a336
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.speedplayletu"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
71
8
versionName
"7.1.
8
"
versionCode
71
9
versionName
"7.1.
9
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/speedplayletu/ad/splash/SplashManager.kt
View file @
5a87a336
...
...
@@ -24,7 +24,7 @@ object SplashManager {
// 兜底配置
val
pangleSplashBottom
=
object
:
MediationSplashRequestInfo
(
MediationConstant
.
ADN_PANGLE
,
"88
8403155
"
,
MediationConstant
.
ADN_PANGLE
,
"88
9457860
"
,
BuildConfig
.
GROMORE_APP_ID
,
""
)
{}
//ok
...
...
@@ -56,7 +56,7 @@ object SplashManager {
)
.
setMediationAdSlot
(
MediationAdSlot
.
Builder
()
//
.setMediationSplashRequestInfo(pangleSplashBottom)
.
setMediationSplashRequestInfo
(
pangleSplashBottom
)
.
build
()
)
.
build
()
...
...
@@ -77,6 +77,8 @@ object SplashManager {
override
fun
onSplashAdLoad
(
p0
:
TTSplashAd
?)
{
LogUtil
.
d
(
TAG
,
"gromore 开屏广告--> 3、Gromore onSplashAdLoadSuccess"
)
LogUtil
.
d
(
"SplashNewActivity-->"
,
"333333--> ad show"
)
isLoadSuccess
=
2
mTTSplashAd
=
p0
}
...
...
video/app/src/main/java/com/duben/speedplayletu/ui/activitys/SplashActivity.kt
View file @
5a87a336
...
...
@@ -36,7 +36,7 @@ class SplashActivity : BaseActivity() {
var
powerDialog
:
PowerDialog
?
=
null
var
powerDialog2
:
PowerDialog2
?
=
null
private
var
mProgressBar
:
CycleProgress
?
=
null
private
val
AD_TIME_OUT
=
3
000
private
val
AD_TIME_OUT
=
5
000
var
timer
:
CountDownTimerSupport
?
=
null
private
var
isAdSuc
=
false
...
...
@@ -94,9 +94,11 @@ class SplashActivity : BaseActivity() {
timer
=
CountDownTimerSupport
(
AD_TIME_OUT
.
toLong
(),
1000
)
timer
!!
.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
LogUtil
.
d
(
"SplashNewActivity-->"
,
"111-->"
+
millisUntilFinished
)
// 第一次安装时,延迟加载开屏广告,因为广告sdk还未初始化完成
val
firstSplash
=
get
().
getBoolean
(
Constant
.
FIRST_SPLASH
,
true
)
if
(
firstSplash
&&
millisUntilFinished
==
(
AD_TIME_OUT
-
2000
).
toLong
())
{
if
(
firstSplash
&&
millisUntilFinished
==
(
AD_TIME_OUT
-
1000
).
toLong
())
{
LogUtil
.
d
(
"SplashNewActivity-->"
,
"222-->"
+
millisUntilFinished
)
SplashManager
.
preLoadAd
(
this
@SplashActivity
)
get
().
put
(
Constant
.
FIRST_SPLASH
,
false
)
}
...
...
video/app/src/main/java/com/duben/speedplayletu/ui/widgets/CycleProgress.java
View file @
5a87a336
...
...
@@ -20,7 +20,7 @@ import com.duben.speedplayletu.utils.BubbleUtils;
@SuppressLint
(
"DrawAllocation"
)
public
class
CycleProgress
extends
View
{
private
static
final
long
DURATION
=
3
00
;
private
static
final
long
DURATION
=
4
00
;
private
int
mViewWidth
;
private
int
mViewHeight
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment