Tidied up the place method

git-svn-id: https://smali.googlecode.com/svn/trunk@199 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-06-21 06:40:02 +00:00
parent b1a620218e
commit 64a2d18b6f

View File

@ -194,7 +194,8 @@ public class DexFile
public void place() {
int offset = 0;
offset = 0x70;
offset = HeaderItemSection.place(offset);
for (IndexedSection indexedSection: indexedSections) {
indexedSection.unplace();
offset = indexedSection.place(offset);
@ -208,11 +209,6 @@ public class DexFile
offset = offsettedSection.place(offset);
}
HeaderItemSection.place(0);
if (offset % 4 != 0) {
offset += (4 - (offset % 4));
}
offset = MapSection.place(offset);
dataSize = offset - dataOffset;