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
1813237e
Commit
1813237e
authored
Mar 08, 2022
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fe10f7fb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
39 deletions
+9
-39
YlVideoManager.kt
...c/main/java/com/mints/goodmoney/manager/YlVideoManager.kt
+2
-2
MainActivity.kt
...ain/java/com/mints/goodmoney/ui/activitys/MainActivity.kt
+6
-6
MoneyFragment.kt
...ain/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
+1
-31
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/YlVideoManager.kt
View file @
1813237e
...
...
@@ -12,8 +12,8 @@ import com.yilan.sdk.ui.configs.YLUIConfig
*/
object
YlVideoManager
{
private
const
val
ACCESSKEY
=
"yl
xgszgwjrr8
"
private
const
val
ACCESSTOKEN
=
"
lmnzhm9yjdlc86xiy74cjgixnqpxe4o2
"
private
const
val
ACCESSKEY
=
"yl
1q5rcjsb05
"
private
const
val
ACCESSTOKEN
=
"
9qitn62coocwcjjwhs95re24poaf9q7j
"
fun
init
(
application
:
Application
)
{
YLUIInit
.
getInstance
()
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/MainActivity.kt
View file @
1813237e
...
...
@@ -175,15 +175,15 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
}
fun
selectBook
()
{
moneyFragment
?.
let
{
(
it
as
MoneyFragment
).
selectBook
()
}
//
moneyFragment?.let {
//
(it as MoneyFragment).selectBook()
//
}
}
fun
selectXmly
()
{
moneyFragment
?.
let
{
(
it
as
MoneyFragment
).
selectXmly
()
}
//
moneyFragment?.let {
//
(it as MoneyFragment).selectXmly()
//
}
}
fun
turnDayTask
()
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
View file @
1813237e
...
...
@@ -48,8 +48,6 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
if
(
AppConfig
.
showAdFlag
)
{
if
(
curPosition
==
0
)
{
mainFragment
?.
onHiddenChanged
(
hidden
)
}
else
if
(
curPosition
==
4
)
{
liebaoGameFragment
?.
onHiddenChanged
(
hidden
)
}
}
...
...
@@ -75,16 +73,10 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
currentFragment
=
mainFragment
}
xtFragmentMoney
.
setxTabDisplayNum
(
3
)
xtFragmentMoney
.
setxTabDisplayNum
(
1
)
val
newTab1
=
xtFragmentMoney
.
newTab
()
newTab1
.
text
=
"视频"
val
newTab5
=
xtFragmentMoney
.
newTab
()
newTab5
.
text
=
"游戏"
val
newTab6
=
xtFragmentMoney
.
newTab
()
newTab6
.
text
=
"来电秀"
xtFragmentMoney
.
addTab
(
newTab1
)
xtFragmentMoney
.
addTab
(
newTab5
)
xtFragmentMoney
.
addTab
(
newTab6
)
xtFragmentMoney
.
addOnTabSelectedListener
(
this
)
}
else
{
...
...
@@ -137,19 +129,9 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
fun
selectBook
()
{
xtFragmentMoney
.
getTabAt
(
1
)
?.
select
()
if
(
bookStoreFragment
==
null
)
{
bookStoreFragment
=
ReaderFragment
()
}
addOrShowFragment
(
childFragmentManager
,
bookStoreFragment
!!
,
FRAGMENT_TAG_BOOKSTORE
)
}
fun
selectXmly
()
{
xtFragmentMoney
.
getTabAt
(
2
)
?.
select
()
if
(
xmlyGameFragment
==
null
)
{
xmlyGameFragment
=
XmlyFragment
()
}
addOrShowFragment
(
childFragmentManager
,
xmlyGameFragment
!!
,
FRAGMENT_TAG_XMLY
)
}
override
fun
onTabReselected
(
tab
:
XTabLayout
.
Tab
)
{
...
...
@@ -174,18 +156,6 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
}
1
->
{
if
(
liebaoGameFragment
==
null
)
{
liebaoGameFragment
=
LiebaoGameFragment
()
}
addOrShowFragment
(
childFragmentManager
,
liebaoGameFragment
!!
,
FRAGMENT_TAG_GAME
)
}
2
->
{
if
(
kuYinyueFragment
==
null
)
{
kuYinyueFragment
=
KuYinYueFragment
()
}
addOrShowFragment
(
childFragmentManager
,
kuYinyueFragment
!!
,
FRAGMENT_TAG_KYL
)
}
}
curPosition
=
tab
.
position
}
...
...
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