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

Commit 2afe899c authored by Jared Duke's avatar Jared Duke
Browse files

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
parent 7d859fde
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 {

        /**