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

Removed Context from DbStoragePlainFile #15

Closed

Conversation

denyskonakhevych
Copy link

Removed Context from DbStoragePlainFile to decrease coupling storage with android classes. Storage needed only path to directory with db files.

…with android classes. Storage needed only path to directory with db files.
@pilgr
Copy link
Owner

pilgr commented Jul 22, 2015

Just realized that getFilesDir may produce strict mode violation. Because Paper.book() is called in UI thread the context is needed to get files dir when it's really needed in background thread together with other i/o operations.

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.0_r1/android/app/ContextImpl.java#1013

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.

2 participants