| | |
| | | iv_play.setImageResource(R.mipmap.player_pause) |
| | | //恢复进度 |
| | | tv_progress.text = "%02d:%02d".format(MainActivity.currentPosition/1000/60,MainActivity.currentPosition/1000%60) |
| | | sb_voice.progress = MainActivity.currentPosition/1000 |
| | | sb_voice.progress = (MainActivity.currentPosition/1000).toInt() |
| | | } |
| | | } |
| | | EventBus.getDefault().register(this) |
| | |
| | | sb_voice.max = MainActivity.currentDuration |
| | | }else if (e.code == Const.EventCode.GOT_THINK_POSITION&&MainActivity.voice?.id == voiceDetail?.id){ |
| | | tv_progress.text = "%02d:%02d".format(MainActivity.currentPosition/1000/60,MainActivity.currentPosition/1000%60) |
| | | sb_voice.progress = MainActivity.currentPosition/1000 |
| | | sb_voice.progress = (MainActivity.currentPosition/1000).toInt() |
| | | } |
| | | } |
| | | |