Commit ca565b98 authored by jyx's avatar jyx

代码游湖

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