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

Fix elliptical badge form #275

Merged
merged 3 commits into from
Jun 7, 2016
Merged

Fix elliptical badge form #275

merged 3 commits into from
Jun 7, 2016

Conversation

pocheshire
Copy link
Contributor

#143 and #250 PRs

@roughike roughike merged commit 7f841c6 into roughike:master Jun 7, 2016
ViewGroup.LayoutParams params = getLayoutParams();
params.width = size;
params.height = size;
setLayoutParams(params);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call is creating an infinite loop because at above line 188 we have a global layout listener which calls this method (adjustPositionAndSize).

Please revert (since it's causing issues in the activity/fragment lifecycles) and figure out another way to fix.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in the onGlobalLayout callback we should unregister it and call invalidate() right after calling adjustPositionAndSize

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

Successfully merging this pull request may close these issues.

3 participants