fix(deps): update dependency androidx.core:core-ktx to v1.13.0 (#673)

Use `GestureDetector` as this release deprecates
`GestureDetectorCompat`.
This commit is contained in:
Nik Clayton 2024-04-30 16:14:11 +02:00 committed by GitHub
parent 7102c359db
commit bf474a5eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View File

@ -29,7 +29,6 @@ import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.GestureDetectorCompat
import androidx.core.view.ViewCompat
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
@ -82,7 +81,7 @@ class ViewImageFragment : ViewMediaFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
val singleTapDetector = GestureDetectorCompat(
val singleTapDetector = GestureDetector(
requireContext(),
object : GestureDetector.SimpleOnGestureListener() {
override fun onDown(e: MotionEvent) = true

View File

@ -33,7 +33,6 @@ import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.LinearLayout
import androidx.annotation.OptIn
import androidx.core.view.GestureDetectorCompat
import androidx.core.view.ViewCompat
import androidx.lifecycle.lifecycleScope
import androidx.media3.common.MediaItem
@ -134,7 +133,7 @@ class ViewVideoFragment : ViewMediaFragment() {
var wasPlaying: Boolean? = null
/** Handle taps and flings */
val simpleGestureDetector = GestureDetectorCompat(
val simpleGestureDetector = GestureDetector(
requireContext(),
object : GestureDetector.SimpleOnGestureListener() {
override fun onDown(e: MotionEvent) = true

View File

@ -7,7 +7,7 @@ androidx-appcompat = "1.6.1"
androidx-browser = "1.8.0"
androidx-cardview = "1.0.0"
androidx-constraintlayout = "2.1.4"
androidx-core = "1.12.0"
androidx-core = "1.13.0"
androidx-exifinterface = "1.3.7"
androidx-fragment = "1.6.2"
androidx-hilt = "1.2.0"