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
98fa7afd
Commit
98fa7afd
authored
May 11, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止公众号弹窗重叠
parent
c2ae5c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
MainFragment.kt
...main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
+5
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MainFragment.kt
View file @
98fa7afd
...
...
@@ -87,6 +87,9 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
private
var
mRedBoxCoin
=
0
private
var
mRedBoxCoinDouble
=
0
// 公众号弹窗 true-显示
private
var
gzhDialogFlag
=
true
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_main_first
override
fun
initViewsAndEvents
()
{
...
...
@@ -328,7 +331,8 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
private
fun
GzhDialogShow
(
data
:
UserTaskMsgBean
)
{
LogUtil
.
d
(
"GzhPresenter"
,
"GzhDialogShow***************************************"
)
//用户 第二天打开应用并且非重新下载安装
if
(
data
.
isShowWechatTips
&&
!
ps
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
{
if
(
data
.
isShowWechatTips
&&
!
ps
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
)
&&
gzhDialogFlag
)
{
gzhDialogFlag
=
false
gzhDialog
()
//服务器交互,做回调 //弹窗打开传入1
homePresenter
.
setWechatTipsStatus
(
Constant
.
STATUS_CODE_ONE
)
...
...
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