summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Jared Duke <jdduke@google.com> 2023-01-12 13:56:51 -0800
committer Jared Duke <jdduke@google.com> 2023-01-12 14:05:40 -0800
commit1935a2f2c1704fc1958783c0ceb74095e4052ca6 (patch)
tree82f0bf72179917d04f5a85e8614f1be8dc2a3fca /services/coverage/java
parent12fb8ad349d93facbb5ca0b0924b74840755cf83 (diff)
Ensure weakly referenced Kotlin callback fields are kept
This is an extension of earlier work for keeping callback fields that are weakly referenced in the registrar. Private Kotlin fields for anonymous objects default to using the anonymous type. This breaks the existing keep pattern matching for such callbacks. Extend the rules to handle this case, also keeping any fields that extend the callback type. A better solution will be to annotate the Callback types directly, and define a single rule that keeps any fields of a correspondingly annotated type, but that requires more invasive changes. This should fix any issues now while we work on that solution. Bug: 264686688 Test: m + `dexdump SystemUI.apk | grep MediaDataFilter$userTracker` Change-Id: Ib4d75c4cc3b121b818250e7191747b01413bd71a
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions