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

Commit 400bc93c authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

Fix RelativeLayout rules

A previous change restricted rules that are added to the rule dependency
graph to resource ids rather than just integers greater that zero.
Restore the previous behavior and also allow for negative resource ids
to work as expected.

Bug: 132447676
Test: loaded maps and view looks as expected
Change-Id: I88d86c77c696d1e494a743fdd2e398283383c64e
parent 0cde819f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1992,7 +1992,7 @@ public class RelativeLayout extends ViewGroup {
                // dependencies for a specific set of rules
                for (int j = 0; j < rulesCount; j++) {
                    final int rule = rules[rulesFilter[j]];
                    if (ResourceId.isValid(rule)) {
                    if (rule > 0 || ResourceId.isValid(rule)) {
                        // The node this node depends on
                        final Node dependency = keyNodes.get(rule);
                        // Skip unknowns and self dependencies