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

Commit 85a037af authored by Donald Chai's avatar Donald Chai
Browse files

Fix misleading (copy-pasted?) error message

"openRawResource" usually isn't used for drawables.

Bug: 141873128
Change-Id: Ib00467d9df305262bfb9e256b6431705a8b9c907
Tested: N/A
parent a7fee3de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ public class ResourcesImpl {
        try {
            return mAssets.openNonAssetFd(tempValue.assetCookie, tempValue.string.toString());
        } catch (Exception e) {
            throw new NotFoundException("File " + tempValue.string.toString() + " from drawable "
            throw new NotFoundException("File " + tempValue.string.toString() + " from "
                    + "resource ID #0x" + Integer.toHexString(id), e);
        }
    }
@@ -359,7 +359,7 @@ public class ResourcesImpl {
            // Note: value.string might be null
            NotFoundException rnf = new NotFoundException("File "
                    + (value.string == null ? "(null)" : value.string.toString())
                    + " from drawable resource ID #0x" + Integer.toHexString(id));
                    + " from resource ID #0x" + Integer.toHexString(id));
            rnf.initCause(e);
            throw rnf;
        }