| | |
| | | package com.dollearn.student.ui.home |
| | | |
| | | import androidx.constraintlayout.widget.ConstraintLayout |
| | | import androidx.fragment.app.Fragment |
| | | import com.dollearn.student.R |
| | | import com.dollearn.student.network.HttpManager |
| | | import com.dollearn.student.network.request |
| | | import com.dollearn.student.ui.TransparentStatusBarActivity |
| | | import com.dollearn.student.utils.Const |
| | | import com.dollearn.student.utils.event.EmptyEvent |
| | | import com.dollearn.student.utils.event.IntEvent |
| | | import kotlinx.android.synthetic.main.activity_schedul.* |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.greenrobot.eventbus.Subscribe |
| | | import org.jetbrains.anko.browse |
| | | |
| | | class ScheduleActivity :TransparentStatusBarActivity(){ |
| | | override fun setContentView() = R.layout.activity_schedul |
| | |
| | | tab_bar.updateTabStyles() |
| | | } |
| | | |
| | | fun unLockNext(day: Int){ |
| | | currentDay = day |
| | | tab_bar.getTitleView(day - 1).isEnabled = true |
| | | tab_bar.currentTab = currentDay-1 |
| | | } |
| | | |
| | | @Subscribe |
| | | fun nextSubject(e: IntEvent){ |
| | | if (e.code == Const.EventCode.NEXT_SUBJECT){ |