Skip to content
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

Crash on removing last chat head #32

Open
raghul-s opened this issue Jul 19, 2017 · 4 comments
Open

Crash on removing last chat head #32

raghul-s opened this issue Jul 19, 2017 · 4 comments

Comments

@raghul-s
Copy link

raghul-s commented Jul 19, 2017

No description provided.

@raghul-s
Copy link
Author

Kindly give me a solution for this @thekirankumar

@cazador4
Copy link

cazador4 commented Aug 4, 2017

hey, @thekirankumar please help us with this!!

@cazador4
Copy link

cazador4 commented Aug 4, 2017

@raghul-s please look at my fork. I could fix it.

@HungTDO
Copy link

HungTDO commented Aug 13, 2017

Maybe error raise (not attached window?) If right, see below:
Just Check view is attached to window (in WindowManagerContainer.java#onArrangementChanged):

// TODO: ChatHeadLibs: Fix error here (not attached window)
        if (motionCaptureView != null && motionCaptureView.getWindowToken() != null)
        windowManager.updateViewLayout(motionCaptureView, layoutParams);

After resolved that, maybe raise error when minimized chathead. Plz edit code in MinimizedArrangement.java#getBundle()

if (hero != null && hero.getHorizontalSpring() != null && hero.getVerticalSpring() != null) {
relativeXPosition = hero.getHorizontalSpring().getCurrentValue() * 1.0 / maxWidth;
relativeYPosition = hero.getVerticalSpring().getCurrentValue() * 1.0 / maxHeight;
}

All worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants