Commit e23ef5e8 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent ef207f8e
...@@ -333,12 +333,10 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -333,12 +333,10 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
if (UserManager.getInstance().newFlag if (UserManager.getInstance().newFlag
&& vipList != null && vipList!!.size > 0 && vipList != null && vipList!!.size > 0
) { ) {
vipAdapter.setPosition(0) vipAdapter.setPosition(0)
vipAdapter.notifyDataSetChanged() vipAdapter.notifyDataSetChanged()
val vipBean = vipList!![0] val vipBean = vipList!![0]
setVipContent(vipBean)
backPayYesDialog(vipBean) backPayYesDialog(vipBean)
return true return true
} }
...@@ -360,7 +358,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -360,7 +358,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
vipAdapter.setPosition(0) vipAdapter.setPosition(0)
vipAdapter.notifyDataSetChanged() vipAdapter.notifyDataSetChanged()
val vipBean = vipList!![0] val vipBean = vipList!![0]
setVipContent(vipBean)
backPayYesDialog(vipBean) backPayYesDialog(vipBean)
} else { } else {
finish() finish()
......
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