Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
4e345302
Commit
4e345302
authored
Dec 18, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
b7e6a1fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
HorizonChannelFragment.kt
...com/mints/goodmoney/ui/fragment/HorizonChannelFragment.kt
+9
-0
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+8
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/HorizonChannelFragment.kt
View file @
4e345302
...
...
@@ -114,6 +114,8 @@ class HorizonChannelFragment : BaseFragment(), HorizChannelView, View.OnClickLis
pauseDownloadTime
()
channelFragment
?.
onPause
()
destoryTimerRedbox
()
if
(
isToCreateReward
)
{
// 防止界面切换 重置红包动画
// 好兔视频已加载 且 红包已转满
...
...
@@ -306,6 +308,9 @@ class HorizonChannelFragment : BaseFragment(), HorizChannelView, View.OnClickLis
}
stopRedbox
()
destoryTimerRedbox
()
mRedBoxTimer
=
CountDownTimerSupport
(
time
*
1000
,
1000
)
rl_fragment_main_redbox
.
isClickable
=
false
...
...
@@ -378,4 +383,8 @@ class HorizonChannelFragment : BaseFragment(), HorizChannelView, View.OnClickLis
})
}
private
fun
destoryTimerRedbox
(){
mRedBoxTimer
?.
stop
()
mRedBoxTimer
=
null
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
4e345302
...
...
@@ -152,6 +152,8 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
stopRedbox
()
// 倒计时红包暂停
pauseDownloadTime
()
destoryTimerRedbox
()
littleVideoFragment
?.
onPause
()
if
(
isToCreateReward
)
{
...
...
@@ -600,6 +602,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
}
stopRedbox
()
destoryTimerRedbox
()
mRedBoxTimer
=
CountDownTimerSupport
(
time
*
1000
,
1000
)
rl_fragment_main_redbox
.
isClickable
=
false
...
...
@@ -625,4 +628,9 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
showRedbox
(
rl_fragment_main_redbox
)
}
}
private
fun
destoryTimerRedbox
(){
mRedBoxTimer
?.
stop
()
mRedBoxTimer
=
null
}
}
\ No newline at end of file
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