Commit ca565b98 authored by jyx's avatar jyx

代码游湖

parent b536733c
...@@ -50,7 +50,6 @@ import com.duben.dayplaylet.utils.RxBus.MsgEvent ...@@ -50,7 +50,6 @@ import com.duben.dayplaylet.utils.RxBus.MsgEvent
import com.duben.library.utils.nodoubleclick.AntiShake import com.duben.library.utils.nodoubleclick.AntiShake
import io.reactivex.Observer import io.reactivex.Observer
import io.reactivex.disposables.Disposable import io.reactivex.disposables.Disposable
import kotlinx.android.synthetic.main.drama_activity_api_detail.*
import kotlinx.android.synthetic.main.fragment_music.* import kotlinx.android.synthetic.main.fragment_music.*
import kotlinx.android.synthetic.main.fragment_music.cl_reward import kotlinx.android.synthetic.main.fragment_music.cl_reward
import kotlinx.android.synthetic.main.fragment_music.iv_cash_reward import kotlinx.android.synthetic.main.fragment_music.iv_cash_reward
...@@ -357,13 +356,16 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener { ...@@ -357,13 +356,16 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener {
} }
override fun onNext(t: MsgEvent) { override fun onNext(t: MsgEvent) {
if (!t.msg.equals(feedParamsForCallback["group_id"])) return // if (!t.msg.equals(feedParamsForCallback["group_id"])) return
for (i in optionsList.indices) { for (i in optionsList.indices) {
val right = answer == i val right = answer == i
if (right) { if (right) {
mMusicBean?.let { mMusicBean?.let {
if (it.nextIsAd && optionsList[i].isClickable) { if (it.nextIsAd && optionsList[i].isClickable) {
quizIvRedbox0.visibility = View.GONE
quizIvRedbox1.visibility = View.GONE
if (i == 0) { if (i == 0) {
quizIvRedbox0.visibility = quizIvRedbox0.visibility =
View.VISIBLE View.VISIBLE
...@@ -372,10 +374,8 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener { ...@@ -372,10 +374,8 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener {
View.VISIBLE View.VISIBLE
} }
} else { } else {
quizIvRedbox0.visibility = quizIvRedbox0.visibility = View.GONE
View.GONE quizIvRedbox0.visibility = View.GONE
quizIvRedbox0.visibility =
View.GONE
} }
} }
} }
...@@ -769,7 +769,7 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener { ...@@ -769,7 +769,7 @@ class MusicFragment : LazyLoadBaseFragment(), MusicView, View.OnClickListener {
OnCountDownTimerListener { OnCountDownTimerListener {
override fun onTick(millisUntilFinished: Long) { override fun onTick(millisUntilFinished: Long) {
quizTvPop.text = String.format( quizTvPop.text = String.format(
"%2ds后消失", "%2dS后消失",
(millisUntilFinished / 1000).toInt() (millisUntilFinished / 1000).toInt()
) )
} }
......
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