Commit 98fa7afd authored by mengcuiguang's avatar mengcuiguang

防止公众号弹窗重叠

parent c2ae5c74
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment