Fix: #24
This commit is contained in:
@ -65,16 +65,13 @@ final class SetupThread extends Thread {
|
|||||||
final int totalReadBytesFinal = totalReadBytes;
|
final int totalReadBytesFinal = totalReadBytes;
|
||||||
final int totalBytesFinal = totalBytes;
|
final int totalBytesFinal = totalBytes;
|
||||||
|
|
||||||
activity.runOnUiThread(new Runnable() {
|
activity.runOnUiThread(() -> {
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
try {
|
try {
|
||||||
double progressFloat = ((double) totalReadBytesFinal) / ((double) totalBytesFinal) * 100.0;
|
double progressFloat = ((double) totalReadBytesFinal) / ((double) totalBytesFinal) * 100.0;
|
||||||
progressDialog.setProgress((int) progressFloat);
|
progressDialog.setProgress((int) progressFloat);
|
||||||
} catch (RuntimeException ignore) {
|
} catch (RuntimeException ignore) {
|
||||||
// activity dismissed
|
// activity dismissed
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (zipEntry.getName().contains("SYMLINKS.txt")) {
|
if (zipEntry.getName().contains("SYMLINKS.txt")) {
|
||||||
|
Reference in New Issue
Block a user