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
7b24a2d9
Commit
7b24a2d9
authored
Nov 17, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化好兔视频
parent
3a2aafc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
17 deletions
+15
-17
DhGameFragment.kt
...in/java/com/mints/goodmoney/ui/fragment/DhGameFragment.kt
+0
-7
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+8
-3
MoneyFragment.kt
...ain/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
+7
-7
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/DhGameFragment.kt
View file @
7b24a2d9
...
...
@@ -21,13 +21,6 @@ class DhGameFragment : LazyLoadBaseFragment() {
}
override
fun
onFragmentFirstVisible
()
{
LogUtil
.
e
(
"DhGameFragment"
,
"onFragmentFirstVisible"
)
}
override
fun
onFragmentResume
()
{
super
.
onFragmentResume
()
if
(
AppConfig
.
fragmentClickFlag
===
Constant
.
FRAGMENT_CLICK_MAIN
)
{
}
}
override
fun
onDestroy
()
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
7b24a2d9
...
...
@@ -237,9 +237,12 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
if
(
isFirstLoadVedio
)
{
isFirstLoadVedio
=
false
initTimeview
()
}
else
{
resumeDownloadTime
(
videoid
)
}
vedioId
=
videoid
LogUtil
.
d
(
TAG
,
"onStart videoid:${videoid}"
)
}
override
fun
onPause
(
p0
:
String
?,
p1
:
String
?,
p2
:
String
?)
{
...
...
@@ -251,11 +254,13 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
}
override
fun
onComplete
(
p0
:
String
?,
videoid
:
String
,
p2
:
String
?)
{
addVedioIdList
(
videoid
)
pauseDownloadTime
()
}
override
fun
onLoopComplete
(
p0
:
String
?,
p1
:
String
,
p2
:
String
?,
p3
:
Int
)
{
override
fun
onLoopComplete
(
pager
:
String
?,
videoID
:
String
,
taskID
:
String
?,
num
:
Int
)
{
addVedioIdList
(
videoID
)
pauseDownloadTime
()
LogUtil
.
d
(
TAG
,
"onLoopComplete pager:${pager} videoID:${videoID} taskID:${taskID} num:${num}"
)
}
override
fun
onStuckStart
(
p0
:
String
?,
p1
:
String
?,
p2
:
String
?)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
View file @
7b24a2d9
...
...
@@ -49,13 +49,13 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
private
fun
initView
()
{
val
tabs
:
MutableList
<
String
>
=
ArrayList
()
tabs
.
add
(
"视频"
)
//
tabs.add("游戏")
tabs
.
add
(
"游戏"
)
tabs
.
add
(
"书城"
)
val
fragments
:
MutableList
<
Fragment
>
=
ArrayList
()
mainFragment
=
MainFragment
()
fragments
.
add
(
mainFragment
!!
)
//
fragments.add(DhGameFragment())
fragments
.
add
(
DhGameFragment
())
fragments
.
add
(
ZhangyueFragment
())
//去除两侧应阴影
...
...
@@ -81,11 +81,11 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
override
fun
onTabSelected
(
tab
:
XTabLayout
.
Tab
)
{
//
if (tab.position == 1 && !UserManager.getInstance().userIsLogin()) {
//
readyGo(LoginActivity::class.java)
//
vpFragmentMoney.currentItem = if (curPosition == 1) 0 else curPosition
//
return
//
}
if
(
tab
.
position
==
1
&&
!
UserManager
.
getInstance
().
userIsLogin
())
{
readyGo
(
LoginActivity
::
class
.
java
)
vpFragmentMoney
.
currentItem
=
if
(
curPosition
==
1
)
0
else
curPosition
return
}
curPosition
=
tab
.
position
}
}
\ 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