Skip to content

Commit

Permalink
fix: Fix crash in ToggleScrollInRecyclerViewActivity.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallaadelessa committed Sep 13, 2023
1 parent 6a4b165 commit 5028b14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ import com.yelp.android.bentosampleapp.databinding.ActivityToggleScrollInRecycle

class ToggleScrollInRecyclerViewActivity : AppCompatActivity() {
private lateinit var binding: ActivityToggleScrollInRecyclerViewBinding

private val componentController by lazy {
RecyclerViewComponentController(binding.recyclerView)
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_toggle_scroll_in_recycler_view)
binding = ActivityToggleScrollInRecyclerViewBinding.inflate(layoutInflater)
.apply { setContentView(root) }

componentController.addComponent(CarouselComponent().apply {
(1..40).forEach {
Expand Down

0 comments on commit 5028b14

Please sign in to comment.