This commit is contained in:
imkiva
2018-03-25 00:39:46 +08:00
parent 4b5a0a6372
commit 3341084f1c

View File

@ -65,16 +65,13 @@ final class SetupThread extends Thread {
final int totalReadBytesFinal = totalReadBytes;
final int totalBytesFinal = totalBytes;
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
activity.runOnUiThread(() -> {
try {
double progressFloat = ((double) totalReadBytesFinal) / ((double) totalBytesFinal) * 100.0;
progressDialog.setProgress((int) progressFloat);
} catch (RuntimeException ignore) {
// activity dismissed
}
}
});
if (zipEntry.getName().contains("SYMLINKS.txt")) {