Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfbb735f authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #1862317: Browser does not appear to honor anchors (#es) in links

Also a little improved debugging output of bad resource identifiers.

Change-Id: I054064ef22855608ffd722e4ccf12ce57d1992b2
parent ed89b3f9
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1740,7 +1740,11 @@ bool ResTable::getResourceName(uint32_t resID, resource_name* outName) const
    const int e = Res_GETENTRY(resID);

    if (p < 0) {
        if (Res_GETPACKAGE(resID)+1 == 0) {
            LOGW("No package identifier when getting name for resource number 0x%08x", resID);
        } else {
            LOGW("Resources don't contain pacakge for resource number 0x%08x", resID);
        }
        return false;
    }
    if (t < 0) {
@@ -1786,7 +1790,11 @@ ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag
    const int e = Res_GETENTRY(resID);

    if (p < 0) {
        LOGW("No package identifier when getting value for resource number 0x%08x", resID);
        if (Res_GETPACKAGE(resID)+1 == 0) {
            LOGW("No package identifier when getting name for resource number 0x%08x", resID);
        } else {
            LOGW("Resources don't contain pacakge for resource number 0x%08x", resID);
        }
        return BAD_INDEX;
    }
    if (t < 0) {