app/src/main/java/com/dollearn/student/ui/home/ChooseVoiceFragment.kt
@@ -58,6 +58,8 @@ private var nowVoiceView:View? = null private val isShowText by lazy { SPUtils.instance().getBoolean(Const.IS_SHOW_TEXT,true) } override fun onFirstVisibleToUser() { player.setOnAudioStatusUpdateListener(this) player.stopPlayMusic() @@ -243,6 +245,7 @@ val shuffledList = list.shuffled() voiceList.clear() voiceList.addAll(shuffledList) if (isShowText) nameViews.forEachIndexed { index, textView -> if (index == currentIndex){ textView.text = originList[index].name