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

Commit 8250a825 authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Add ability to obtain themed Drawable from Context

This is to fix the rendering in layoutlib broken due to
8eea3ea5

Change-Id: I3da6691ad86502bd4fa4b302deb381a840b94655
parent 5441745e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -155,6 +155,11 @@ public final class BridgeResources extends Resources {

    @Override
    public Drawable getDrawable(int id) throws NotFoundException {
        return getDrawable(id, null);
    }

    @Override
    public Drawable getDrawable(int id, Theme theme) {
        Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);

        if (value != null) {