Skip to content

Commit

Permalink
Tablayout selection fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
skaradimitriou committed Jul 31, 2021
1 parent 61754b0 commit b8975fe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class SyllabusActivity : ElmepaActivity(R.layout.activity_syllabus) {

val userChoice = intent.getIntExtra("userTabChoice", 0)

tabLayout.getTabAt(userChoice)
Log.d("",userChoice.toString())


tabLayout.getTabAt(userChoice)?.select()

viewModel.bindCallback(object : SyllabusClickListener {
override fun onSemesterTap(syllabus: Semester) {
Expand Down

0 comments on commit b8975fe

Please sign in to comment.