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
6f62eced
Commit
6f62eced
authored
Jan 08, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6f21e736
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+4
-3
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
6f62eced
...
...
@@ -487,13 +487,14 @@ class MyFragment : BaseFragment(),
AppConfig
.
isHighTask
=
false
mCurrentPkg
=
null
ps
.
remove
(
Constant
.
HIGH_TASK_PKG_NAME
)
}
3
->
{
if
(
mCurrentPkg
==
null
)
{
// 如果当前包名为空,获取本地存储的包名
mCurrentPkg
=
PreferencesService
.
getInstance
(
mContext
).
getString
(
Constant
.
HIGH_TASK_PKG_NAME
)
mCurrentPkg
=
ps
.
getString
(
Constant
.
HIGH_TASK_PKG_NAME
,
""
)
}
if
(
mCurrentPkg
==
null
)
{
if
(
TextUtils
.
isEmpty
(
mCurrentPkg
)
)
{
showToast
(
"任务异常,请重试~"
)
myPresenter
.
setHighTaskType
(
"0"
)
...
...
@@ -1242,7 +1243,7 @@ class MyFragment : BaseFragment(),
try
{
val
pkg
=
intent
.
getStringExtra
(
"pkg"
)
mCurrentPkg
=
pkg
PreferencesService
.
getInstance
(
mContext
).
putString
(
Constant
.
HIGH_TASK_PKG_NAME
,
pkg
)
ps
.
put
(
Constant
.
HIGH_TASK_PKG_NAME
,
pkg
)
myPresenter
.
setHighTaskType
(
"3"
)
}
catch
(
e
:
Exception
)
{
...
...
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