Fix default return code for getResource
Reorganization of getResource to allow for other densities accidentally overrode the default return code for getResource from BAD_VALUE to BAD_INDEX. This corrects the default return to BAD_VALUE which restores other things to working. Bug: 3155824 Change-Id: I13dafff85bc6978c5f5435fc09ab0474c7885c4d
This commit is contained in:
parent
328f501eb9
commit
3a91fca00c
1 changed files with 1 additions and 1 deletions
|
@ -1949,7 +1949,7 @@ ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag
|
|||
desiredConfig = overrideConfig;
|
||||
}
|
||||
|
||||
ssize_t rc = BAD_INDEX;
|
||||
ssize_t rc = BAD_VALUE;
|
||||
size_t ip = grp->packages.size();
|
||||
while (ip > 0) {
|
||||
ip--;
|
||||
|
|
Loading…
Reference in a new issue