Skip to content

Commit fc2b3f3

Browse files
committed
fix: setup progress bar indicates wrong progress
1 parent 04a5485 commit fc2b3f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/io/neoterm/setup/SetupThread.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ public void run() {
5050
deleteFolder(stagingPrefixFile);
5151
}
5252

53-
int totalBytes = 0;
5453
int totalReadBytes = 0;
5554
final byte[] buffer = new byte[8096];
5655
final List<Pair<String, String>> symlinks = new ArrayList<>(50);
5756

58-
totalBytes = sourceConnection.getSize();
5957

6058
try (ZipInputStream zipInput = new ZipInputStream(sourceConnection.getInputStream())) {
6159
ZipEntry zipEntry;
6260

61+
int totalBytes = sourceConnection.getSize();
62+
6363
while ((zipEntry = zipInput.getNextEntry()) != null) {
6464
totalReadBytes += zipEntry.getCompressedSize();
6565

0 commit comments

Comments
 (0)