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

TIMOB-11999-Added setDatabaseEnabled and setDatabasePath on WebSettings ... #3854

Merged
merged 2 commits into from Feb 14, 2013

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Feb 8, 2013

TIMOB-11999-Set the properties DatabaseEnabled and DatabasePath on WebSettings to enable local storage

File path = TiApplication.getInstance().getFilesDir();
if (path != null) {
settings.setDatabasePath(path.getAbsolutePath());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We should only enable database when we are also able to set the path. It's not guaranteed to work correctly if you enable the database, without setting a path.

@salachi
Copy link
Contributor Author

salachi commented Feb 14, 2013

Incorporated review comments

@ayeung
Copy link
Contributor

ayeung commented Feb 14, 2013

Code reviewed and functionally tested. Request Accepted

ayeung pushed a commit that referenced this pull request Feb 14, 2013
TIMOB-11999-Added setDatabaseEnabled and setDatabasePath on WebSettings ...
@ayeung ayeung merged commit 70b5ad5 into tidev:master Feb 14, 2013
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