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
39b113e4
Commit
39b113e4
authored
Oct 10, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7d1fd44f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
VipPresenter.kt
...java/com/duben/xixiplaylet/mvp/presenters/VipPresenter.kt
+2
-2
VipActivity.kt
...in/java/com/duben/xixiplaylet/ui/activitys/VipActivity.kt
+3
-2
No files found.
video/app/src/main/java/com/duben/xixiplaylet/mvp/presenters/VipPresenter.kt
View file @
39b113e4
...
@@ -24,13 +24,13 @@ class VipPresenter : BasePresenter<VipView>() {
...
@@ -24,13 +24,13 @@ class VipPresenter : BasePresenter<VipView>() {
if
(
isLinkView
)
if
(
isLinkView
)
return
return
view
.
hideLoading
()
//
view.hideLoading()
}
}
override
fun
onError
(
e
:
Throwable
?)
{
override
fun
onError
(
e
:
Throwable
?)
{
if
(
isLinkView
)
return
if
(
isLinkView
)
return
view
.
hideLoading
()
//
view.hideLoading()
}
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
UserBean
>)
{
override
fun
onNext
(
baseResponse
:
BaseResponse
<
UserBean
>)
{
...
...
video/app/src/main/java/com/duben/xixiplaylet/ui/activitys/VipActivity.kt
View file @
39b113e4
...
@@ -757,11 +757,11 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -757,11 +757,11 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
timer
!!
.
stop
()
timer
!!
.
stop
()
timer
=
null
timer
=
null
}
}
timer
=
CountDownTimerSupport
(
8
000
,
1000
)
timer
=
CountDownTimerSupport
(
9
000
,
1000
)
timer
!!
.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
timer
!!
.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
if
(!
isFinishing
)
{
if
(!
isFinishing
)
{
if
(
millisUntilFinished
==
3
000L
){
if
(
millisUntilFinished
==
4
000L
){
vipPresenter
.
getMyInfo
()
vipPresenter
.
getMyInfo
()
}
}
}
}
...
@@ -769,6 +769,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -769,6 +769,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
override
fun
onFinish
()
{
override
fun
onFinish
()
{
if
(!
isFinishing
)
{
if
(!
isFinishing
)
{
hideLoading
()
vipPresenter
.
getMyInfo
()
vipPresenter
.
getMyInfo
()
}
}
}
}
...
...
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