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

Apply async for sharedPrefs rather than committing(), which writes on the ui thread. #7

Merged
merged 1 commit into from
Mar 26, 2015

Conversation

premnirmal
Copy link
Contributor

Applying shared prefs rather than committing to prevent writing to disk on the main thread. Looking at the app in strict mode, there were a lot of warnings due to disk read/write on main thread by Indicative.java, which was causing performance issues.

jackie-benowitz added a commit that referenced this pull request Mar 26, 2015
Apply async for sharedPrefs rather than committing(), which writes on the ui thread.
@jackie-benowitz jackie-benowitz merged commit 0d5f502 into Indicative:master Mar 26, 2015
@jackie-benowitz
Copy link
Contributor

Awesome -- this is a great improvement! Thanks!

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