summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2021-01-29 14:19:08 -0800
committerTodd Kennedy <toddke@google.com>2021-04-05 10:19:31 -0700
commita939273859d6013e5f44bdb2cde264a5b6d48fae (patch)
treecdbb445800ba1a4675f8f7c594f8b992e5eb8180 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc11d161d3a2cf390474a09b2d0f3e4f967aebee1 (diff)
Use the correct method to unparcel the property map
We were writing the map as a generic Map, but reading it as an ArrayMap. There's a subtle difference between the two methods. The generic Map creator reads the map's key using readValue(), which first reads an integer datatype and then the data. Whereas the ArrayMap creator knows the keys are Strings and thus calls readString() directly without consuming the datatype. This throws the parcel reading logic out of whack. Fixes: 176295431 Test: manual Change-Id: I2d32488e3339e2d838e680be1ed9476b9e15cd69
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions