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
39d284f5
Commit
39d284f5
authored
Nov 27, 2020
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8df2e49c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
+17
-8
InitAppService.kt
...y/app/src/main/java/com/mints/goodmoney/InitAppService.kt
+0
-3
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+4
-0
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+6
-4
SignView.java
...rc/main/java/com/mints/goodmoney/ui/widgets/SignView.java
+4
-0
activity_drawcash.xml
GoodMoney/app/src/main/res/layout/activity_drawcash.xml
+3
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/InitAppService.kt
View file @
39d284f5
...
@@ -74,9 +74,6 @@ class InitAppService : IntentService("InitializeService") {
...
@@ -74,9 +74,6 @@ class InitAppService : IntentService("InitializeService") {
//logger
//logger
initLogger
()
initLogger
()
// 数美
ShumeiManager
.
getInstance
().
initShumei
()
// 极光推送
// 极光推送
initJpush
()
initJpush
()
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
39d284f5
...
@@ -11,6 +11,7 @@ import com.mints.goodmoney.R
...
@@ -11,6 +11,7 @@ import com.mints.goodmoney.R
import
com.mints.goodmoney.ad.video.VedioAdingManager
import
com.mints.goodmoney.ad.video.VedioAdingManager
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.ShumeiManager
import
com.mints.goodmoney.manager.TTPreLoadExpressManager
import
com.mints.goodmoney.manager.TTPreLoadExpressManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.MainVedioMsgBean
import
com.mints.goodmoney.mvp.model.MainVedioMsgBean
...
@@ -449,6 +450,9 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
...
@@ -449,6 +450,9 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
powerDialog
!!
.
dismiss
()
powerDialog
!!
.
dismiss
()
ps
.
put
(
Constant
.
LOAN_PERMISSION_FLAG
,
false
)
ps
.
put
(
Constant
.
LOAN_PERMISSION_FLAG
,
false
)
// 数美初始化
ShumeiManager
.
getInstance
().
initShumei
()
// 游客首次提示1500新人奖励 且 不是分享包
// 游客首次提示1500新人奖励 且 不是分享包
val
channel
=
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
)
val
channel
=
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
)
if
(!
TextUtils
.
equals
(
channel
,
Constant
.
CHANNEL_SHARE
)
&&
ps
.
getBoolean
(
Constant
.
FIRST_VISITOR_FLAG
,
true
))
{
if
(!
TextUtils
.
equals
(
channel
,
Constant
.
CHANNEL_SHARE
)
&&
ps
.
getBoolean
(
Constant
.
FIRST_VISITOR_FLAG
,
true
))
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
39d284f5
...
@@ -616,6 +616,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -616,6 +616,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
readyGo
(
FoodSubsidyActivity
::
class
.
java
)
readyGo
(
FoodSubsidyActivity
::
class
.
java
)
}
}
else
->
{
else
->
{
if
(!
TextUtils
.
isEmpty
(
hotBean
.
url
)
&&
!
TextUtils
.
isEmpty
(
hotBean
.
title
))
{
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putString
(
WebActivity
.
WEB_TITLE
,
hotBean
.
title
)
bundle
.
putString
(
WebActivity
.
WEB_TITLE
,
hotBean
.
title
)
bundle
.
putString
(
WebActivity
.
WEB_URL
,
hotBean
.
url
)
bundle
.
putString
(
WebActivity
.
WEB_URL
,
hotBean
.
url
)
...
@@ -624,6 +625,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -624,6 +625,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
}
}
}
}
}
}
}
/**
/**
* 获取激励视频
* 获取激励视频
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/SignView.java
View file @
39d284f5
...
@@ -134,6 +134,10 @@ public class SignView extends LinearLayout implements View.OnClickListener {
...
@@ -134,6 +134,10 @@ public class SignView extends LinearLayout implements View.OnClickListener {
}
}
public
void
setCurDaysSignViewLayout
(
int
signDays
,
int
status
)
{
public
void
setCurDaysSignViewLayout
(
int
signDays
,
int
status
)
{
// 重新设置状态时停止动画
if
(
status
==
2
)
{
stopRedbox
();
}
if
(
signDays
==
1
)
{
if
(
signDays
==
1
)
{
setDaysLayout
(
signDays
,
status
,
tvFirstday
);
setDaysLayout
(
signDays
,
status
,
tvFirstday
);
setContentLayoutAndBgColor
(
signDays
,
status
,
tvFirst
,
tvFirstday
,
true
);
setContentLayoutAndBgColor
(
signDays
,
status
,
tvFirst
,
tvFirstday
,
true
);
...
...
GoodMoney/app/src/main/res/layout/activity_drawcash.xml
View file @
39d284f5
...
@@ -22,7 +22,9 @@
...
@@ -22,7 +22,9 @@
android:id=
"@+id/rl_coin"
android:id=
"@+id/rl_coin"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"20dp"
>
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"20dp"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
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