When setTouchOutsideDismiss(false) need to make touches effect the app
danvinokour opened this issue · 3 comments
now if setTouchOutsideDismiss(false) then clicks on screen will do nothing.
Please make clicks effect the app.
@danvinokour
If you want to dismiss the Dialog when touch outside the toolTip,you should
setTouchOutsideDismiss(true)
Hi,
I mean that if EasyDialog is shown on the screen and setTouchOutsideDismiss(false) i cannot press other buttons on the screen...
I think that here you should listen to all touches and clicks:
public EasyDialog setTouchOutsideDismiss(boolean touchOutsideDismiss) { this.touchOutsideDismiss = touchOutsideDismiss; if(touchOutsideDismiss) { rlOutsideBackground.setOnTouchListener(outsideBackgroundListener); } else { rlOutsideBackground.setOnTouchListener(null); } return this; }
and here you should rturn false only if you didnt handle the touch/click event and true otherwise:
final View.OnTouchListener outsideBackgroundListener = new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (touchOutsideDismiss && dialog != null) { onDialogDismiss(); } return false; } };
Hello, is there any action on this?