mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
Adapt null resource to be treated as reference instead of empty string. (#3417)
* fix: handle null resolved items as references * test: add color null test for aapt2
This commit is contained in:
@ -71,6 +71,11 @@ public class BuildAndDecodeTest extends BaseTest {
|
||||
assertTrue(sTestNewDir.isDirectory());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valuesColorsTest() throws BrutException {
|
||||
compareValuesFiles("values/colors.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void valuesStringsTest() throws BrutException {
|
||||
compareValuesFiles("values/strings.xml");
|
||||
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="test_color1">#ff123456</color>
|
||||
<color name="test_color2">@android:color/white</color>
|
||||
<color name="test_color3">#00000000</color>
|
||||
<color name="issue_3416">@null</color>
|
||||
</resources>
|
Reference in New Issue
Block a user