mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14:25 +02:00
reset ZipAligner
This commit is contained in:
parent
d8ef9db70a
commit
f8476916ad
@ -85,6 +85,9 @@ public class ApkWriter extends ZipFileOutput {
|
||||
}
|
||||
private void align(List<OutputSource> outputList){
|
||||
ZipAligner aligner = getZipAligner();
|
||||
if(aligner!=null){
|
||||
aligner.reset();
|
||||
}
|
||||
for(OutputSource outputSource:outputList){
|
||||
outputSource.align(aligner);
|
||||
}
|
||||
|
@ -53,13 +53,13 @@ public class ZipAligner {
|
||||
}
|
||||
this.defaultAlignment = defaultAlignment;
|
||||
}
|
||||
public void reset(){
|
||||
mCurrentOffset = 0;
|
||||
}
|
||||
public void setEnableDataDescriptor(boolean enableDataDescriptor) {
|
||||
this.enableDataDescriptor = enableDataDescriptor;
|
||||
}
|
||||
|
||||
void reset(){
|
||||
mCurrentOffset = 0;
|
||||
}
|
||||
void align(InputSource inputSource, LocalFileHeader lfh){
|
||||
lfh.setExtra(null);
|
||||
int padding;
|
||||
|
Loading…
x
Reference in New Issue
Block a user