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

Commit 674b8eaf authored by Adrian Roos's avatar Adrian Roos
Browse files

AOD: Fix camera icon visibility

Fixes a bug where the camera icon could become
visible in AOD even though it should not.

Fixes: 62038727
Test: Trigger ambient display, uninstall button provider plugin, observe camera button does not show
Change-Id: Ie97085dff58b6ecd0157126e30b86138f585d454
parent a239ed1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL

    private void updateRightAffordanceIcon() {
        IconState state = mRightButton.getIcon();
        mRightAffordanceView.setVisibility(state.isVisible ? View.VISIBLE : View.GONE);
        mRightAffordanceView.setVisibility(!mDozing && state.isVisible ? View.VISIBLE : View.GONE);
        mRightAffordanceView.setImageDrawable(state.drawable, state.tint);
        mRightAffordanceView.setContentDescription(state.contentDescription);
    }