Commit 9e53dc41 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 95943cd1
......@@ -353,6 +353,8 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
Handler(Looper.getMainLooper()).postDelayed({
if (!isAdded) return@postDelayed
rope?.stop()
rope = null
rope = YoYo.with(Techniques.Pulse).duration(500).repeat(-1)
.playOn(iv_main_newcomer)
}, 300)
......@@ -456,6 +458,9 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
Handler(Looper.getMainLooper()).postDelayed({
if (!isAdded) return@postDelayed
rope?.stop()
rope = null
rope = YoYo.with(Techniques.Pulse).duration(500).repeat(-1)
.playOn(iv_main_newcomer)
}, 300)
......
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