Skip to content

Commit 90e940f

Browse files
committed
Update FetchService
1 parent e5ed957 commit 90e940f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private boolean download() {
193193
if (pngDir.mkdirs()) Log.d("Download", "pngDir created");
194194

195195
for (int id = firstId; id < firstId + count; id++) {
196-
final File outputFile = new File(pngDir, String.valueOf(id) + ".png");
196+
final File outputFile = new File(pngDir, id + ".png");
197197
final byte[] buffer = new byte[1024];
198198
InputStream inputStream = null;
199199
OutputStream outputStream = null;
@@ -229,7 +229,7 @@ private boolean download() {
229229
.setSmallIcon(R.mipmap.ic_launcher)
230230
.setOngoing(true).setProgress(count, id - firstId + 1, false);
231231
notificationManager.notify(NOTIFICATION_ID, builder.build());
232-
Log.d("Downloader", String.valueOf(id) + " downloaded");
232+
Log.d("Downloader", id + " downloaded");
233233
} finally {
234234
if (inputStream != null) {
235235
inputStream.close();
@@ -251,8 +251,8 @@ private boolean convert() {
251251
if (gifDir.mkdirs()) Log.d("Download", "gifDir created");
252252
File png, gif;
253253
for (int id = firstId; id < firstId + count; id++) {
254-
png = new File(pngDir, String.valueOf(id) + ".png");
255-
gif = new File(gifDir, String.valueOf(id) + ".gif");
254+
png = new File(pngDir, id + ".png");
255+
gif = new File(gifDir, id + ".gif");
256256
apng2GifCustom.start(png, gif);
257257
builder.setContentTitle(String.format(Locale.getDefault(),
258258
getString(R.string.fetch_converting) + " (%d/%d)", id - firstId + 1, count))

0 commit comments

Comments
 (0)