Skip to content

Commit

Permalink
On outside photo tap instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo committed Mar 18, 2016
1 parent d2586be commit 40f6fbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public boolean onSingleTapConfirmed(MotionEvent e) {
photoViewAttacher.getOnPhotoTapListener().onPhotoTap(imageView, xResult, yResult);
return true;
}else{
photoViewAttacher.getOnPhotoTapListener().onBesidePhotoTap();
photoViewAttacher.getOnPhotoTapListener().onOutsidePhotoTap();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ public static interface OnPhotoTapListener {
/**
* A simple callback where out of photo happened;
* */
void onBesidePhotoTap();
void onOutsidePhotoTap();
}

/**
Expand All @@ -1047,7 +1047,7 @@ public static interface OnPhotoTapListener {
*
* @author Chris Banes
*/
public static interface OnViewTapListener {
public interface OnViewTapListener {

/**
* A callback to receive where the user taps on a ImageView. You will receive a callback if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void onPhotoTap(View view, float x, float y) {
}

@Override
public void onBesidePhotoTap() {
public void onOutsidePhotoTap() {
showToast("You have a tap event on the place where out of the photo.");
}
}
Expand Down

0 comments on commit 40f6fbb

Please sign in to comment.