Merge "Merge "Ensure weakly referenced callback fields are kept" into tm-qpr-dev am: 71d0f222f1" into tm-qpr-dev-plus-aosp am: 930d536567

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20887732

Change-Id: Iaae57810f598191abcac1473fbe532a2f617c618
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Automerger Merge Worker
2023-01-10 17:41:58 +00:00

View File

@@ -19,6 +19,18 @@
public <init>();
}
# Needed to ensure callback field references are kept in their respective
# owning classes when the downstream callback registrars only store weak refs.
# TODO(b/264686688): Handle these cases with more targeted annotations.
-keepclassmembers,allowaccessmodification class com.android.systemui.**, com.android.keyguard.** {
private com.android.keyguard.KeyguardUpdateMonitorCallback *;
private com.android.systemui.privacy.PrivacyItemController$Callback *;
private com.android.systemui.settings.UserTracker$Callback *;
private com.android.systemui.statusbar.phone.StatusBarWindowCallback *;
private com.android.systemui.util.service.Observer$Callback *;
private com.android.systemui.util.service.ObservableServiceConnection$Callback *;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}