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
6f21e736
Commit
6f21e736
authored
Jan 08, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
50554031
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+4
-4
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+5
-0
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
6f21e736
...
...
@@ -55,16 +55,16 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
vedioAdingManager
=
VedioAdingManager
.
getInstance
(
this
)
initExpress
()
initListener
()
initDataView
()
if
(!
AppConfig
.
app_black_flag
)
{
// 首次进行黑名单校验
judgeAppInfo
()
}
else
{
pushAward
()
}
initExpress
()
initListener
()
initDataView
()
}
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
6f21e736
...
...
@@ -1230,15 +1230,20 @@ class MyFragment : BaseFragment(),
private
fun
registerBroad
()
{
if
(
mReceiverBroadcastReceiver
!=
null
)
return
mContext
.
startService
(
Intent
(
context
,
AppInstallService
::
class
.
java
))
mReceiverBroadcastReceiver
=
object
:
BroadcastReceiver
()
{
override
fun
onReceive
(
context
:
Context
?,
intent
:
Intent
?)
{
if
(
intent
==
null
)
return
// 非高额任务不监听下载安装
if
(
TextUtils
.
equals
(
carrierType
,
Constant
.
CARRIER_HIGH_ACTIVITY
))
{
try
{
val
pkg
=
intent
.
getStringExtra
(
"pkg"
)
mCurrentPkg
=
pkg
PreferencesService
.
getInstance
(
mContext
).
putString
(
Constant
.
HIGH_TASK_PKG_NAME
,
pkg
)
myPresenter
.
setHighTaskType
(
"3"
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
...
...
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