0
0
Fork 0
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:
X1nto 2020-07-17 01:55:53 +04:00
parent 9cda1b73ec
commit 147042ca49

View file

@ -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()