Skip to content

Commit

Permalink
PE-383 Rename onTouchView to onTouchSourceImage
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanepechard authored and burhanrashid52 committed Jul 31, 2021
1 parent dccfb76 commit e952d82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public void onStopViewChangeListener(ViewType viewType) {
}

@Override
public void onTouchView(MotionEvent event) {
public void onTouchSourceImage(MotionEvent event) {
Log.d(TAG, "onTouchView() called with: event = [" + event + "]");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@ public interface OnPhotoEditorListener {
*/
void onStopViewChangeListener(ViewType viewType);

void onTouchView(MotionEvent event);
/**
* A callback when the user touches the screen.
*
* @param event the MotionEvent associated to the touch.
*/
void onTouchSourceImage(MotionEvent event);
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void onSingleTapUp() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if (mOnPhotoEditorListener != null) {
mOnPhotoEditorListener.onTouchView(event);
mOnPhotoEditorListener.onTouchSourceImage(event);
}
return mDetector.onTouchEvent(event);
}
Expand Down

0 comments on commit e952d82

Please sign in to comment.