Skip to content

Commit

Permalink
Introduce explaining variable
Browse files Browse the repository at this point in the history
  • Loading branch information
NeslynChellaiah committed Nov 27, 2024
1 parent 2bcd09b commit 75b24d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ private static LottieResult<LottieComposition> fromZipStreamSyncInternal(@Nullab
File tempFile = new File(context.getCacheDir(), fileName);
try (FileOutputStream fos = new FileOutputStream(tempFile)) {
try (OutputStream output = new FileOutputStream(tempFile)) {
byte[] buffer = new byte[4 * 1024];
int four_kb_size = 4 * 1024;
byte[] buffer = new byte[four_kb_size];
int read;
while ((read = inputStream.read(buffer)) != -1) {
output.write(buffer, 0, read);
Expand Down

0 comments on commit 75b24d3

Please sign in to comment.