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

Commit 6c514d38 authored by Linus Tufvesson's avatar Linus Tufvesson
Browse files

Fix computation of _lowest_staging_first_id

Bug: 427965245
Test: frameworks/base/tools/aapt2/tools/finalize_res.py frameworks/base/core/res/res/values/public-staging.xml frameworks/base/core/res/res/values/public-final.xml
Flag: EXEMPT script change
Change-Id: I4a29f6a4aa73114f23d02d4f789cead50d1aec91
parent 4057a82e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -141,7 +141,11 @@ def finalize_group(raw):
    # Only add it to final.xml if new ids were actually assigned
    if res:
        res = '<staging-public-group-final type="%s" first-id="%s">\n%s  </staging-public-group-final>\n\n%s' % (_type, raw.group(2), group_matches, res)

    # Potenitally bump _lowest_staging_first_id if this group had any flags (finalize or not).
    if all:
        _lowest_staging_first_id = min(id, _lowest_staging_first_id)

    return res

"""