Commit 08767b2
committed
retrieve Config only in ResBagValue and misc tweaks
We actually don't need to pass Config explicitly to all ResValue subtypes.
It's only needed by 3 subtypes of ResBagValue, so we get the Config
via ResBagValue's mParent.getPackage().getConfig().
Encapsulate ResConfigFlags.
Encapsulate ResID and make it a numeric and comparable type.
Sort resource specs by resource ID in generatePublicXml.
Duo is redundant, replace with Apache Common's Pair.
ResIdValue is redundant, it's never actually instantiated.
Tweak equals and hashCode overrides to standard formats.
Misc style and variable name tweaks.1 parent 013b3c1 commit 08767b2
File tree
43 files changed
+558
-676
lines changed- brut.apktool/apktool-lib/src
- main/java/brut/androlib
- apk
- res
- data
- value
- decoder
- xml
- test/java/brut/androlib/res/decoder
- brut.j.dir/src/main/java/brut/directory
- brut.j.util/src/main/java/brut/util
- brut.j.xml/src/main/java/brut/xmlpull
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+558
-676
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 115 | + | |
119 | 116 | | |
120 | 117 | | |
121 | 118 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
246 | | - | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
0 commit comments