Skip to content

Commit a44577e

Browse files
committed
Make 'fill' accessible at AlignItem
1 parent 0f3dc62 commit a44577e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/com/reandroid/arsc/item/AlignItem.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.reandroid.utils.HexUtil;
2121

2222
import java.io.IOException;
23-
import java.util.Arrays;
2423

2524
public class AlignItem extends BlockItem {
2625

@@ -92,10 +91,17 @@ public void setAlignment(int alignment) {
9291
setBytesLength(0, false);
9392
}
9493
}
94+
95+
public byte getFill() {
96+
return fill;
97+
}
9598
public void setFill(byte fill) {
9699
this.fill = fill;
97100
byte[] bytes = getBytesInternal();
98-
Arrays.fill(bytes, fill);
101+
int length = bytes.length;
102+
for (int i = 0; i < length; i++) {
103+
bytes[i] = fill;
104+
}
99105
}
100106

101107
@Override

0 commit comments

Comments
 (0)