Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fix: Initialise button after adapter setup in UnitNavigationActivity (#…
Browse files Browse the repository at this point in the history
…1832)

fixes: LEARNER-9653
  • Loading branch information
omerhabib26 authored Oct 9, 2023
1 parent 4d35179 commit f9eaf0c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ class CourseUnitNavigationActivity : BaseFragmentActivity(), CourseUnitFragment.
EventBus.getDefault().post(LogoutEvent())
return
}
binding.gotoPrev.setOnClickListener { navigatePreviousComponent() }
binding.gotoNext.setOnClickListener { navigateNextComponent() }
onLoadData()

if (subsection?.children.isNullOrEmpty()) {
Expand All @@ -195,6 +193,9 @@ class CourseUnitNavigationActivity : BaseFragmentActivity(), CourseUnitFragment.
}
binding.pager2.setVisibility(true)
binding.stateLayout.root.setVisibility(false)

binding.gotoPrev.setOnClickListener { navigatePreviousComponent() }
binding.gotoNext.setOnClickListener { navigateNextComponent() }
}

public override fun onSaveInstanceState(outState: Bundle) {
Expand Down

0 comments on commit f9eaf0c

Please sign in to comment.