mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-30 06:53:01 +00:00
added a null safety call
This commit is contained in:
parent
9cda1b73ec
commit
147042ca49
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue