Skip to content

Commit

Permalink
Use isVisible for setting visibility (review comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Horta committed Jan 25, 2024
1 parent b07b565 commit fbc8fd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import androidx.viewpager.widget.ViewPager
Expand Down Expand Up @@ -132,7 +133,7 @@ class SubfilterBottomSheetFragment : BottomSheetDialogFragment() {
}

viewModel.isTitleContainerVisible.observe(viewLifecycleOwner) { isVisible ->
titleContainer.visibility = if (isVisible) View.VISIBLE else View.GONE
titleContainer.isVisible = isVisible
}
}

Expand Down

0 comments on commit fbc8fd0

Please sign in to comment.