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

Commit 58658eaa authored by Diego Perez's avatar Diego Perez
Browse files

Fix themed attributes resolution

If an attribute is not an actual theme reference, the call to
Resources.Theme.resolveAttribute will fail in layoutlib. This would
happen for example for color values.
The call in the Android framework simply returns the value.

Bug: 31553972
Change-Id: Idda768a659d94a6c3f848dc960303cf4241325c3
parent d4babda3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -373,7 +373,9 @@ public final class BridgeContext extends Context {
            return true;
        }

        return false;
        // If the value is not a valid reference, fallback to pass the value as a string.
        outValue.string = value.getValue();
        return true;
    }