-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onDialogDismiss leaks context #25
Comments
@danvinokour Ok,I will check it,thanks~ |
Hi, |
@danvinokour So sorry about that,danvinokour,I am very busy recently.I plan to fix it this weekend,ok? |
@danvinokour I test the code,it seems that everything works fine,could you please give me more debug info? View view = this.getLayoutInflater().inflate(R.layout.layout_tip_content_horizontal, null);
Button btnOk = (Button)view.findViewById(R.id.btnOk);
final EasyDialog easyDialog = new EasyDialog(MainActivity.this)
.setLocationByAttachedView(btnTopLeft)
.setLayout(view)
.setGravity(EasyDialog.GRAVITY_BOTTOM)
.setMatchParent(false)
.setTouchOutsideDismiss(false)
.setAnimationAlphaShow(600, 0.0f, 1.0f)
.setAnimationAlphaDismiss(600, 1.0f, 0.0f);
easyDialog.show();
btnOk.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
easyDialog.dismiss();
}
}); |
Hi, On Thu, Mar 3, 2016, 14:52 MichaelYe [email protected] wrote:
|
I saw that there is a memory leak in onDialogDismiss().
dialog.dismiss wasn't called and therefore a leak accoured.
Maybe you should add the listener before you start animator?
this is how i create the EasyDialog:
EasyDialog easyDialog = new EasyDialog(mContext.get()). setLocationByAttachedView(viewToAttach). setLayout(easyDialogView). setGravity(toolTip.getDirection()). setMatchParent(false). setAnimationAlphaShow(600, 0.0f, 1.0f). setAnimationAlphaDismiss(600, 1.0f, 0.0f);
I guess it because i am using animation.
The text was updated successfully, but these errors were encountered: