Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Skip dynamic style downloads on JB & ICS
Browse files Browse the repository at this point in the history
If unable to create an HttpResponseCache due to lack of permissions client will be null. In which case, abort style download to prevent crash.
  • Loading branch information
ecgreb committed Nov 7, 2014
1 parent ff5d2e3 commit 9ea92ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/mapzen/open/core/StyleDownLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public void download() {
(new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
if (client == null) {
return null;
}

URL url = null;
try {
url = new URL(host + "manifest");
Expand Down

0 comments on commit 9ea92ce

Please sign in to comment.