Skip to content
Snippets Groups Projects
Commit 224a8944 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko
Browse files

#479 Fixed NPE when thread start calculating dialog size while dialog is hiding.

parent 8ae86a4f
Branches
Tags
No related merge requests found
......@@ -214,6 +214,7 @@ public class TablexiaComponentDialog extends Stack {
}
public void hide(boolean animated) {
componentsSizeComputed = true; //prevent recalculating the size of newly created dialog if going to hide it right after showing
if (animated) {
backgroundLayer.addAction(Actions.sequence(Actions.fadeOut(FADE_OUT_DURATION, FADE_OUT_INTERPOLATION)));
addAction(Actions.sequence(Actions.fadeOut(FADE_OUT_DURATION, FADE_OUT_INTERPOLATION), Actions.run(new Runnable() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment