mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-04 08:04:25 +02:00
Fix issue on counting key strings
This commit is contained in:
parent
a17ba317b9
commit
6c4d425a79
@ -3,6 +3,7 @@ package com.reandroid.lib.arsc.array;
|
||||
|
||||
import com.reandroid.lib.arsc.base.Block;
|
||||
import com.reandroid.lib.arsc.base.BlockArray;
|
||||
import com.reandroid.lib.arsc.base.BlockCounter;
|
||||
import com.reandroid.lib.arsc.io.BlockLoad;
|
||||
import com.reandroid.lib.arsc.io.BlockReader;
|
||||
import com.reandroid.lib.arsc.item.ByteArray;
|
||||
@ -46,6 +47,14 @@ public abstract class OffsetBlockArray<T extends Block> extends BlockArray<T> im
|
||||
return result+endCount;
|
||||
}
|
||||
@Override
|
||||
public void onCountUpTo(BlockCounter counter){
|
||||
super.onCountUpTo(counter);
|
||||
if(counter.FOUND){
|
||||
return;
|
||||
}
|
||||
mEnd4Block.onCountUpTo(counter);
|
||||
}
|
||||
@Override
|
||||
public byte[] getBytes(){
|
||||
byte[] results=super.getBytes();
|
||||
if(results==null){
|
||||
|
@ -13,4 +13,11 @@ public class BlockCounter {
|
||||
}
|
||||
COUNT+=val;
|
||||
}
|
||||
@Override
|
||||
public String toString(){
|
||||
if(FOUND){
|
||||
return "FOUND="+COUNT;
|
||||
}
|
||||
return String.valueOf(COUNT);
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ public class PluralsBag {
|
||||
}
|
||||
return typeString.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder=new StringBuilder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user