Skip to content

Commit

Permalink
Use GestureDetector directly
Browse files Browse the repository at this point in the history
  • Loading branch information
t895 authored and thestinger committed Jan 4, 2025
1 parent 9503223 commit 3b51907
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import androidx.camera.view.PreviewView.StreamState
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.view.GestureDetectorCompat
import androidx.core.view.ViewCompat
import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsCompat
Expand Down Expand Up @@ -596,15 +595,15 @@ open class MainActivity : AppCompatActivity(),
lastFrame = null
}

lateinit var gestureDetectorCompat: GestureDetectorCompat
lateinit var gestureDetectorCompat: GestureDetector

@SuppressLint("ClickableViewAccessibility")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
snackBar = Snackbar.make(binding.root, "", Snackbar.LENGTH_LONG)

gestureDetectorCompat = GestureDetectorCompat(this, this)
gestureDetectorCompat = GestureDetector(this, this)

camConfig = CamConfig(this)
cameraControl = CameraControl(camConfig)
Expand Down

0 comments on commit 3b51907

Please sign in to comment.