Skip to content

Commit

Permalink
Remove non functional OnMultiTouchListener interface
Browse files Browse the repository at this point in the history
  • Loading branch information
benju69 authored and burhanrashid52 committed Jul 23, 2024
1 parent 8c24497 commit 3f6fb17
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ internal class MultiTouchListener(
private val deleteView: View?
private val photoEditImageView: ImageView?
private val photoEditorView: PhotoEditorView
private var onMultiTouchListener: OnMultiTouchListener? = null
private var mOnGestureControl: OnGestureControl? = null
private val mOnPhotoEditorListener: OnPhotoEditorListener?
private val viewState: PhotoEditorViewState

override fun onTouch(view: View, event: MotionEvent): Boolean {
mScaleGestureDetector.onTouchEvent(view, event)
mGestureListener.onTouchEvent(event)
Expand Down Expand Up @@ -83,9 +83,7 @@ internal class MultiTouchListener(
MotionEvent.ACTION_CANCEL -> mActivePointerId = INVALID_POINTER_ID
MotionEvent.ACTION_UP -> {
mActivePointerId = INVALID_POINTER_ID
if (deleteView != null && isViewInBounds(deleteView, x, y)) {
onMultiTouchListener?.onRemoveViewListener(view)
} else if (!isViewInBounds(photoEditImageView, x, y)) {
if (!isViewInBounds(photoEditImageView, x, y)) {
view.animate().translationY(0f).translationY(0f)
}
if (deleteView != null) {
Expand Down Expand Up @@ -167,10 +165,6 @@ internal class MultiTouchListener(
var maximumScale = 0f
}

internal interface OnMultiTouchListener {
fun onRemoveViewListener(removedView: View)
}

internal interface OnGestureControl {
fun onClick()
fun onLongClick()
Expand Down

0 comments on commit 3f6fb17

Please sign in to comment.