Skip to content

Commit

Permalink
Revert "update tangram to 0.9.0"
Browse files Browse the repository at this point in the history
This reverts commit fcdf04e.
  • Loading branch information
westnordost committed Mar 8, 2018
1 parent d736773 commit 2a70ba9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ dependencies {
implementation 'com.esotericsoftware:kryo:4.0.1'

// map and location
implementation 'com.mapzen.tangram:tangram:0.9.0'
implementation 'com.mapzen.tangram:tangram:0.8.1'
implementation 'com.mapzen.android:lost:3.0.4'

// config files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ public TileHttpHandler(String apiKey, File directory, long maxSize)
this.apiKey = apiKey;
}

public void onRequest(String url, Callback cb, long requestHandle) {
public boolean onRequest(String url, Callback cb) {
if(url != null) url += "?api_key=" + apiKey;
super.onRequest(url, cb, requestHandle);
return super.onRequest(url, cb);
}

public void onCancel(String url) {
if(url != null) url += "?api_key=" + apiKey;
super.onCancel(url);
}

}

0 comments on commit 2a70ba9

Please sign in to comment.