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 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")) {