Skip to content

Commit 84c3619

Browse files
committed
1.3.4
1 parent 90e940f commit 84c3619

4 files changed

Lines changed: 126 additions & 4 deletions

File tree

0 Bytes
Binary file not shown.

.idea/codeStyles/Project.xml

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
minSdkVersion 15
88
targetSdkVersion 28
99
versionCode 3
10-
versionName "1.3.3"
10+
versionName "1.3.4"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1212
vectorDrawables.useSupportLibrary = true
1313
}

app/src/main/java/io/github/jeffshee/linestickerkeyboard/FetchService.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public class FetchService extends IntentService {
4343
private static final String ANIMATED_URL_FORMAT = URL_COMMON + "%d/IOS/sticker_animation@2x.png;compress=true";
4444
private static final String POPUP_URL_FORMAT = URL_COMMON + "%d/IOS/sticker_popup.png;compress=true";
4545

46+
// Fallback URL ("android" has a lower resolution than "IOS" or "iphone")
47+
private static final String STATIC_URL_FORMAT_2 = URL_COMMON + "%d/android/sticker.png;compress=true";
48+
private static final String ANIMATED_URL_FORMAT_2 = URL_COMMON + "%d/android/sticker_animation.png;compress=true";
49+
private static final String POPUP_URL_FORMAT_2 = URL_COMMON + "%d/android/sticker_popup.png;compress=true";
50+
51+
4652
public static final String BROADCAST_ACTION = "io.github.jeffshee.linestickerkeyboard.REFRESH";
4753

4854
int firstId = 0, count = 0, storeId = 0;
@@ -202,13 +208,13 @@ private boolean download() {
202208
try {
203209
switch (type) {
204210
case STATIC:
205-
url = new URL(String.format(Locale.getDefault(), STATIC_URL_FORMAT, id));
211+
url = new URL(String.format(Locale.getDefault(), STATIC_URL_FORMAT_2, id));
206212
break;
207213
case ANIMATED:
208-
url = new URL(String.format(Locale.getDefault(), ANIMATED_URL_FORMAT, id));
214+
url = new URL(String.format(Locale.getDefault(), ANIMATED_URL_FORMAT_2, id));
209215
break;
210216
case POPUP:
211-
url = new URL(String.format(Locale.getDefault(), POPUP_URL_FORMAT, id));
217+
url = new URL(String.format(Locale.getDefault(), POPUP_URL_FORMAT_2, id));
212218
break;
213219
default:
214220
continue;

0 commit comments

Comments
 (0)