Skip to content

Commit

Permalink
rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jan 4, 2025
1 parent c70da1c commit 8e83450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class SettingsDialog(val mActivity: MainActivity, themedContext: Context) :
ev: MotionEvent?,
disallowIntercept: Boolean
): Boolean {
return mActivity.gestureDetectorCompat.onTouchEvent(ev!!)
return mActivity.gestureDetector.onTouchEvent(ev!!)
}

override fun onTouchEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,15 +587,15 @@ open class MainActivity : AppCompatActivity(),
lastFrame = null
}

lateinit var gestureDetectorCompat: GestureDetector
lateinit var gestureDetector: GestureDetector

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

gestureDetectorCompat = GestureDetector(this, this)
gestureDetector = GestureDetector(this, this)

camConfig = CamConfig(this)
cameraControl = CameraControl(camConfig)
Expand Down Expand Up @@ -1237,7 +1237,7 @@ open class MainActivity : AppCompatActivity(),
override fun onTouch(v: View, event: MotionEvent): Boolean {
dbTapGestureDetector.onTouchEvent(event)
scaleGestureDetector.onTouchEvent(event)
gestureDetectorCompat.onTouchEvent(event)
gestureDetector.onTouchEvent(event)

if (event.action == MotionEvent.ACTION_DOWN) return true else if (event.action == MotionEvent.ACTION_UP) {

Expand Down

0 comments on commit 8e83450

Please sign in to comment.