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
7823f573
Commit
7823f573
authored
Jul 20, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
3eef1e6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
22 deletions
+27
-22
SplashActivity.kt
...n/java/com/mints/helivideo/ui/activitys/SplashActivity.kt
+20
-20
DramaApiDetailActivity.kt
.../java/com/mints/helivideo/video/DramaApiDetailActivity.kt
+2
-1
TxVideoActivity.kt
...rc/main/java/com/mints/helivideo/video/TxVideoActivity.kt
+2
-1
fragment_main_my.xml
video/app/src/main/res/layout/fragment_main_my.xml
+3
-0
No files found.
video/app/src/main/java/com/mints/helivideo/ui/activitys/SplashActivity.kt
View file @
7823f573
...
...
@@ -89,26 +89,26 @@ class SplashActivity : BaseActivity() {
timer
=
CountDownTimerSupport
(
AD_TIME_OUT
.
toLong
(),
1000
)
timer
!!
.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
// 第一次安装时,延迟加载开屏广告,因为广告sdk还未初始化完成
val
firstSplash
=
get
().
getBoolean
(
Constant
.
FIRST_SPLASH
,
true
)
if
(
firstSplash
&&
millisUntilFinished
==
(
AD_TIME_OUT
-
2000
).
toLong
())
{
AdManager
.
instance
.
splashPreLoadAll
(
this
@SplashActivity
)
get
().
put
(
Constant
.
FIRST_SPLASH
,
false
)
}
if
(!
isFinishing
)
{
if
(
isAdSuc
)
return
if
(
SplashManager
.
isSuccessStatus
())
{
LogUtil
.
d
(
"SplashNewActivity-->"
,
"SplashNewActivity--> ad show"
)
isAdSuc
=
true
if
(
mProgressBar
!=
null
)
{
mProgressBar
!!
.
setCompleteNoAnim
()
}
// 跳转广告
readyGoThenKill
(
SplashAdActivity
::
class
.
java
)
}
}
//
// 第一次安装时,延迟加载开屏广告,因为广告sdk还未初始化完成
//
val firstSplash = get().getBoolean(Constant.FIRST_SPLASH, true)
//
if (firstSplash && millisUntilFinished == (AD_TIME_OUT - 2000).toLong()) {
//
AdManager.instance.splashPreLoadAll(this@SplashActivity)
//
get().put(Constant.FIRST_SPLASH, false)
//
}
//
//
if (!isFinishing) {
//
if (isAdSuc) return
//
//
if (SplashManager.isSuccessStatus()) {
//
LogUtil.d("SplashNewActivity-->", "SplashNewActivity--> ad show")
//
isAdSuc = true
//
if (mProgressBar != null) {
//
mProgressBar!!.setCompleteNoAnim()
//
}
//
// 跳转广告
//
readyGoThenKill(SplashAdActivity::class.java)
//
}
//
}
}
override
fun
onFinish
()
{
...
...
video/app/src/main/java/com/mints/helivideo/video/DramaApiDetailActivity.kt
View file @
7823f573
...
...
@@ -23,6 +23,7 @@ import com.xinfu.helivideo.mvp.model.IndexList
import
com.xinfu.helivideo.mvp.model.VedioBean
import
com.xinfu.helivideo.mvp.presenters.VideoPresenter
import
com.xinfu.helivideo.mvp.views.VideoView
import
com.xinfu.helivideo.ui.activitys.MainActivity
import
com.xinfu.helivideo.ui.activitys.VipActivity
import
com.xinfu.helivideo.ui.activitys.base.BaseActivity
import
com.xinfu.helivideo.ui.adapter.VideoEpisodeAdapter
...
...
@@ -173,7 +174,7 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
val
bundle
=
Bundle
()
bundle
.
putString
(
VipActivity
.
VEDIO_ID
,
mVedioBean
!!
.
vedioId
.
toString
())
bundle
.
putString
(
VipActivity
.
THIRD_ID
,
mVedioBean
!!
.
thirdId
)
readyGo
(
Vip
Activity
::
class
.
java
,
bundle
)
readyGo
(
Main
Activity
::
class
.
java
,
bundle
)
}
}
...
...
video/app/src/main/java/com/mints/helivideo/video/TxVideoActivity.kt
View file @
7823f573
...
...
@@ -18,6 +18,7 @@ import com.xinfu.helivideo.mvp.model.VedioBean
import
com.xinfu.helivideo.mvp.model.VideoMultiItemEntity
import
com.xinfu.helivideo.mvp.presenters.VideoPresenter
import
com.xinfu.helivideo.mvp.views.VideoView
import
com.xinfu.helivideo.ui.activitys.MainActivity
import
com.xinfu.helivideo.ui.activitys.VipActivity
import
com.xinfu.helivideo.ui.activitys.base.BaseActivity
import
com.xinfu.helivideo.ui.adapter.VideoEpisodeAdapter
...
...
@@ -264,7 +265,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
val
bundle
=
Bundle
()
bundle
.
putString
(
VipActivity
.
VEDIO_ID
,
mVedioBean
!!
.
vedioId
.
toString
())
bundle
.
putString
(
VipActivity
.
THIRD_ID
,
mVedioBean
!!
.
thirdId
)
readyGo
(
Vip
Activity
::
class
.
java
,
bundle
)
readyGo
(
Main
Activity
::
class
.
java
,
bundle
)
}
else
->
{}
}
...
...
video/app/src/main/res/layout/fragment_main_my.xml
View file @
7823f573
...
...
@@ -56,6 +56,7 @@
android:orientation=
"vertical"
>
<LinearLayout
android:visibility=
"gone"
android:id=
"@+id/ll_my_vip"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
...
...
@@ -173,6 +174,7 @@
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingStart=
"20dp"
android:visibility=
"gone"
android:paddingEnd=
"15dp"
>
<TextView
...
...
@@ -236,6 +238,7 @@
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingStart=
"20dp"
android:visibility=
"gone"
android:paddingEnd=
"15dp"
>
<TextView
...
...
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