diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt index e39c4bc1..e92ae950 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt @@ -93,7 +93,7 @@ class HomeFragment : Home() { private fun cardExpandCollapse() { with(binding.includeChangelogsLayout) { - viewModel.expanded.set(!isExpanded) + viewModel?.expanded?.set(!isExpanded) changelogButton.animate().apply { rotation(if (isExpanded) 0F else 180F) interpolator = AccelerateDecelerateInterpolator()