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
a1c2af7d
Commit
a1c2af7d
authored
Dec 14, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
42882ed1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
.gitignore
GoodMoney/app/.gitignore
+3
-0
OkHttpInterceptor.java
.../main/java/com/mints/goodmoney/net/OkHttpInterceptor.java
+2
-2
MoneyFragment.kt
...ain/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
+5
-5
No files found.
GoodMoney/app/.gitignore
View file @
a1c2af7d
/build
/build
mapping.txt
seeds.txt
unused.txt
GoodMoney/app/src/main/java/com/mints/goodmoney/net/OkHttpInterceptor.java
View file @
a1c2af7d
...
@@ -49,7 +49,7 @@ public class OkHttpInterceptor implements Interceptor {
...
@@ -49,7 +49,7 @@ public class OkHttpInterceptor implements Interceptor {
// // 穿山甲分包渠道 暂不开启
// // 穿山甲分包渠道 暂不开启
// String ttChannel = HumeSDK.getChannel(MintsApplication.getContext());
// String ttChannel = HumeSDK.getChannel(MintsApplication.getContext());
// if (!TextUtils.isEmpty(ttChannel)) {
// if (!TextUtils.isEmpty(ttChannel)) {
// channel = ttChannel;
// channel =
channel + "_" +
ttChannel;
// }
// }
// } catch (Exception e) {
// } catch (Exception e) {
// e.printStackTrace();
// e.printStackTrace();
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MoneyFragment.kt
View file @
a1c2af7d
...
@@ -32,7 +32,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
...
@@ -32,7 +32,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
override
fun
onHiddenChanged
(
hidden
:
Boolean
)
{
if
(
curPosition
==
0
)
{
if
(
curPosition
==
0
)
{
mainFragment
?.
onHiddenChanged
(
hidden
)
mainFragment
?.
onHiddenChanged
(
hidden
)
}
else
if
(
curPosition
==
3
)
{
}
else
if
(
curPosition
==
2
)
{
dhGameFragment
?.
onHiddenChanged
(
hidden
)
dhGameFragment
?.
onHiddenChanged
(
hidden
)
}
}
super
.
onHiddenChanged
(
hidden
)
super
.
onHiddenChanged
(
hidden
)
...
@@ -49,7 +49,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
...
@@ -49,7 +49,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
val
tabs
:
MutableList
<
String
>
=
ArrayList
()
val
tabs
:
MutableList
<
String
>
=
ArrayList
()
tabs
.
add
(
"视频"
)
tabs
.
add
(
"视频"
)
tabs
.
add
(
"书城"
)
tabs
.
add
(
"书城"
)
tabs
.
add
(
"新闻"
)
//
tabs.add("新闻")
tabs
.
add
(
"游戏"
)
tabs
.
add
(
"游戏"
)
val
fragments
:
MutableList
<
Fragment
>
=
ArrayList
()
val
fragments
:
MutableList
<
Fragment
>
=
ArrayList
()
...
@@ -57,7 +57,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
...
@@ -57,7 +57,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
dhGameFragment
=
DhGameFragment
()
dhGameFragment
=
DhGameFragment
()
fragments
.
add
(
mainFragment
!!
)
fragments
.
add
(
mainFragment
!!
)
fragments
.
add
(
ZhangyueFragment
())
fragments
.
add
(
ZhangyueFragment
())
fragments
.
add
(
RsNewsFragment
())
//
fragments.add(RsNewsFragment())
fragments
.
add
(
dhGameFragment
!!
)
fragments
.
add
(
dhGameFragment
!!
)
//去除两侧应阴影
//去除两侧应阴影
...
@@ -85,10 +85,10 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
...
@@ -85,10 +85,10 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
}
override
fun
onTabSelected
(
tab
:
XTabLayout
.
Tab
)
{
override
fun
onTabSelected
(
tab
:
XTabLayout
.
Tab
)
{
if
(
tab
.
position
==
3
)
{
if
(
tab
.
position
==
2
)
{
if
(!
UserManager
.
getInstance
().
userIsLogin
())
{
if
(!
UserManager
.
getInstance
().
userIsLogin
())
{
readyGo
(
WxLoginActivity
::
class
.
java
)
readyGo
(
WxLoginActivity
::
class
.
java
)
vpFragmentMoney
.
currentItem
=
if
(
curPosition
==
3
)
0
else
curPosition
vpFragmentMoney
.
currentItem
=
if
(
curPosition
==
2
)
0
else
curPosition
return
return
}
}
}
}
...
...
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