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

No Activity leaking #19

Merged
merged 2 commits into from Feb 16, 2014
Merged

No Activity leaking #19

merged 2 commits into from Feb 16, 2014

Conversation

eveliotc
Copy link
Contributor

@eveliotc eveliotc commented Feb 9, 2014

Currently Activities are being leaked for as long they are kept in the queue, this PR aims to fix this issues by:

  • Auto releasing it onDestroy for ICS+, older versions must call cancelAll(Activity) (preferred) or cancelAll() at earliest convenience.
  • Using one MsgManager per Activity, this way Activity A won't have to wait for AppMsgs belonging to Activity B to be removed in order to show A's AppMsgs
  • Also updates gradle files/vars

Organize build scripts a bit centralizing some shared project properties
Only apply maven_push if nexusUsername is defined
  Auto release it onDestroy for ICS+, older versions must call cancelAll(Activity) or cancelAll() at earliest convenience
Use one MsgManager per Activity
  This way Activity A won't have to wait for AppMsgs belonging to Activity B to be removed in order to show A's AppMsgs
@eveliotc
Copy link
Contributor Author

eveliotc commented Feb 9, 2014

Hello,

Thanks for this implementation of croutons, it feels cleaner than the other one around, I found this issue in the demo app when you press several buttons then rotate your device and press a bunch more the rotate again, then press a bunch more those will get delayed until other leaked Activities finish "showing" them D:

@eveliotc
Copy link
Contributor Author

@johnkil Do you mind taking a look at this?

I have a bunch of cool stuff ready to merge based on this one, at glance:

Cool stuff

@johnkil
Copy link
Owner

johnkil commented Feb 16, 2014

@eveliotc Thanks for contributing. It's a very nasty bug. Your contribution is very useful!

@johnkil johnkil closed this Feb 16, 2014
@johnkil
Copy link
Owner

johnkil commented Feb 16, 2014

Wow, sticky messages and custom animations look very impressive! Great work @eveliotc! I will wait for your pull-request )))
P. S. I really appreciate your contribution to the project.

@eveliotc
Copy link
Contributor Author

@johnkil Err it seems you closed it instead of merge it 😱

@johnkil johnkil reopened this Feb 16, 2014
johnkil added a commit that referenced this pull request Feb 16, 2014
@johnkil johnkil merged commit 3f8e3b2 into johnkil:master Feb 16, 2014
@johnkil
Copy link
Owner

johnkil commented Feb 16, 2014

Sorry, it's my fault 😁

@eveliotc
Copy link
Contributor Author

Cool, I'm gonna send over the others so you can take a look and merge them 👍

@eveliotc eveliotc deleted the no-leaking branch February 16, 2014 19:11
@johnkil
Copy link
Owner

johnkil commented Feb 16, 2014

deal 👌

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.

None yet

2 participants