Skip to content

Commit

Permalink
patch for incorrect imagePathPNG
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyahenson committed Jul 30, 2019
1 parent fbfc581 commit be43195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ allprojects {
}
}
dependencies {
implementation 'com.github.joypixels:emoji-toolkit-android:5.0.0'
implementation 'com.github.joypixels:emoji-toolkit-android:5.0.1'
}
```
and in your manifest add:
Expand Down
4 changes: 2 additions & 2 deletions tools/src/main/java/com/joypixels/tools/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void run() {
String filename = shortcode_replace.get(shortname).get(1);
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url(this.imagePathPNG+this.emojiVersion+"/png/"+this.emojiDownloadSize+"/"+filename+".png")
.url(this.imagePathPNG+this.emojiVersion+"/png/unicode/"+this.emojiDownloadSize+"/"+filename+".png")
.build();
client.newCall(request).enqueue(new Callback() {
@Override
Expand Down Expand Up @@ -251,7 +251,7 @@ public void run() {
String filename = shortcode_replace.get(shortname).get(1);
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url(this.imagePathPNG + this.emojiVersion + "/png/" + this.emojiDownloadSize + "/" + filename + ".png")
.url(this.imagePathPNG + this.emojiVersion + "/png/unicode/" + this.emojiDownloadSize + "/" + filename + ".png")
.build();
client.newCall(request).enqueue(new Callback() {
@Override
Expand Down

0 comments on commit be43195

Please sign in to comment.