[go: nahoru, domu]

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 #285 - BadTokenException in StatsActivity that happens when the site has no Jetpack installed #299

Merged
merged 1 commit into from
Nov 14, 2013

Conversation

daniloercoli
Copy link
Contributor

No description provided.

… activity in the Callback, and checking if it is still running.
@daniloercoli
Copy link
Contributor Author

We can use isFinishing() method, which is called by Android to check whether this activity is in the process of finishing: be it explicit finish() call or activity clean up made by Android, but a better solution is to keep a weak reference to the activity, like I did in the patch, so that activity can be destroyed once not needed.

@roundhill
Copy link
Contributor

@daniloercoli filed #300 for the login dialog issue. I confirmed that this fixed the force close, so am merging!

roundhill added a commit that referenced this pull request Nov 14, 2013
Fix #285 - BadTokenException in StatsActivity that happens when the site has no Jetpack installed
@roundhill roundhill merged commit 3daf9d2 into release/2.5.1 Nov 14, 2013
@roundhill roundhill deleted the issue-285 branch November 14, 2013 20:11
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