Skip to content

Commit

Permalink
Merge pull request #4661 from salachi/TIMOB-14746-HTML5AppCache
Browse files Browse the repository at this point in the history
TIMOB-14746-added support for appCache
  • Loading branch information
pingwang2011 committed Oct 4, 2013
2 parents 1bff05e + 0defd73 commit ca70d4a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public TiUIWebView(TiViewProxy proxy)
settings.setDatabaseEnabled(true);
}

File cacheDir = TiApplication.getInstance().getCacheDir();
if (cacheDir != null) {
settings.setAppCacheEnabled(true);
settings.setAppCachePath(cacheDir.getAbsolutePath());
}

// enable zoom controls by default
boolean enableZoom = true;
Expand Down

0 comments on commit ca70d4a

Please sign in to comment.