Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
added outsideTargetAndMessage dismissType
Browse files Browse the repository at this point in the history
  • Loading branch information
gargVader committed Aug 30, 2021
1 parent 661a84e commit c6d3c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ public boolean onTouchEvent(MotionEvent event) {
dismiss();
}
break;

case outsideTargetAndMessage:
if(!(targetRect.contains(x, y) || isViewContains(mMessageView, x, y))){
dismiss();
}
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* Created by Mohammad Reza Eram (https://github.com/mreram) on 27,November,2018
*/
public enum DismissType {
outside, anywhere, targetView, selfView
outside, anywhere, targetView, selfView, outsideTargetAndMessage
}

0 comments on commit c6d3c76

Please sign in to comment.