diff options
| author | 2023-11-27 21:36:05 +0000 | |
|---|---|---|
| committer | 2023-11-27 22:26:21 +0000 | |
| commit | 2afe899cca05dd84d4ec60c63303847c525950ff (patch) | |
| tree | 071ea9bbe262f63aba534ddbf49a4c9927337ce3 | |
| parent | 7d859fde142d03a82b6cc8ff0585cee08e8b7166 (diff) | |
Mark FlashlightListener as weakly referenced
Ensure member instances of this class are kept when shrinking, avoiding
issues with member removal of the only strong ref.
Bug: 241141059
Test: m + check APK diff
Flag: NONE
Change-Id: I5799a1dddee1995288ae42d0dbfb6475ce0b41ad
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java index e576f36d573a..279e5ef1f38c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java @@ -16,6 +16,7 @@ package com.android.systemui.statusbar.policy; import com.android.systemui.Dumpable; import com.android.systemui.statusbar.policy.FlashlightController.FlashlightListener; +import com.android.systemui.util.annotations.WeaklyReferencedCallback; public interface FlashlightController extends CallbackController<FlashlightListener>, Dumpable { @@ -24,6 +25,7 @@ public interface FlashlightController extends CallbackController<FlashlightListe boolean isAvailable(); boolean isEnabled(); + @WeaklyReferencedCallback public interface FlashlightListener { /** |