| | |
| | | import com.dollearn.student.ui.home.adapter.CardAdapter |
| | | import com.dollearn.student.utils.AudioUtils |
| | | import com.dollearn.student.utils.Const |
| | | import com.dollearn.student.utils.event.EmptyEvent |
| | | import kotlinx.android.synthetic.main.activity_memory.* |
| | | import org.greenrobot.eventbus.EventBus |
| | | |
| | | class MemoryActivity : TransparentStatusBarActivity(), AudioUtils.OnAudioStatusUpdateListener { |
| | | override fun setContentView() = R.layout.activity_memory |
| | |
| | | handler?.removeMessages(PLAY_VOICE) |
| | | handler?.removeMessages(STUDY_TIME) |
| | | handler = null |
| | | EventBus.getDefault().post(EmptyEvent(Const.EventCode.STOP_TIMER)) |
| | | } |
| | | |
| | | override fun onPause() { |