This commit is contained in:
Gangphon 2024-03-14 21:00:56 +08:00
parent 35deccb167
commit ef495edbb6

View File

@ -300,7 +300,14 @@ public class MainActivity extends ComponentActivity implements Choreographer.Fra
return;
}
Util.deleteFiles(size, null);
for(var header : headers) if(! "program".equals(header.getFileName())) zip.extractFile(header, Util.programDir);
for(var header : headers) if(! "program".equals(header.getFileName())) {
Util.println(" name: " + header.getFileName());
var fOut = new FileOutputStream(Util.programDir + "/" + header.getFileName());
IOs.writeCloseIn(fOut, zip.getInputStream(header));
fOut.flush();
fOut.getFD().sync();
fOut.close();
}
var json = progJson.toByteArray();
runOnUiThread(() -> {
Util.println("Import Succeed");