diff --git a/app/src/main/java/siarhei/luskanau/managed/virtual/device/FirstFragment.kt b/app/src/main/java/siarhei/luskanau/managed/virtual/device/FirstFragment.kt index 911a054..fd1cebd 100644 --- a/app/src/main/java/siarhei/luskanau/managed/virtual/device/FirstFragment.kt +++ b/app/src/main/java/siarhei/luskanau/managed/virtual/device/FirstFragment.kt @@ -12,18 +12,18 @@ import siarhei.luskanau.managed.virtual.device.databinding.FragmentFirstBinding * A simple [Fragment] subclass as the default destination in the navigation. */ class FirstFragment : Fragment() { - private var _binding: FragmentFirstBinding? = null + private var bindingLocal: FragmentFirstBinding? = null // This property is only valid between onCreateView and // onDestroyView. - private val binding get() = _binding!! + private val binding get() = bindingLocal!! override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? - ): View? { - _binding = FragmentFirstBinding.inflate(inflater, container, false) + ): View { + bindingLocal = FragmentFirstBinding.inflate(inflater, container, false) return binding.root } @@ -37,6 +37,6 @@ class FirstFragment : Fragment() { override fun onDestroyView() { super.onDestroyView() - _binding = null + bindingLocal = null } } diff --git a/app/src/main/java/siarhei/luskanau/managed/virtual/device/SecondFragment.kt b/app/src/main/java/siarhei/luskanau/managed/virtual/device/SecondFragment.kt index a06e991..567947e 100644 --- a/app/src/main/java/siarhei/luskanau/managed/virtual/device/SecondFragment.kt +++ b/app/src/main/java/siarhei/luskanau/managed/virtual/device/SecondFragment.kt @@ -12,18 +12,18 @@ import siarhei.luskanau.managed.virtual.device.databinding.FragmentSecondBinding * A simple [Fragment] subclass as the second destination in the navigation. */ class SecondFragment : Fragment() { - private var _binding: FragmentSecondBinding? = null + private var bindingLocal: FragmentSecondBinding? = null // This property is only valid between onCreateView and // onDestroyView. - private val binding get() = _binding!! + private val binding get() = bindingLocal!! override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? - ): View? { - _binding = FragmentSecondBinding.inflate(inflater, container, false) + ): View { + bindingLocal = FragmentSecondBinding.inflate(inflater, container, false) return binding.root } @@ -37,6 +37,6 @@ class SecondFragment : Fragment() { override fun onDestroyView() { super.onDestroyView() - _binding = null + bindingLocal = null } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 078ec6c..d9539aa 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] -agp = "8.2.0" -android-material = "1.10.0" -androidx-navigation = "2.7.5" +agp = "8.2.1" +android-material = "1.11.0" +androidx-navigation = "2.7.6" androidx-test-espresso = "3.6.0-alpha02" build-android-compileSdk = "34" build-android-minSdk = "21" @@ -9,9 +9,9 @@ build-android-targetSdk = "34" build-javaVersion = "VERSION_17" build-jvmTarget = "17" detekt = "1.23.4" -kotlin = "1.9.21" +kotlin = "1.9.22" kotlinx-kover = "0.7.4" -ktlint = "1.0.1" +ktlint = "1.1.1" [libraries] android-material = { module = "com.google.android.material:material", version.ref = "android-material" }