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

Commit 2a550419 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Hide floating rotation button upon click

Fixes: 132201048
Test: manual
Change-Id: I8ef65a110e863fbcc752e04b728fdd1e74854f1f
parent 64f31759
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -136,7 +136,10 @@ public class FloatingRotationButton implements RotationButton {

    @Override
    public void setOnClickListener(View.OnClickListener onClickListener) {
        mKeyButtonView.setOnClickListener(onClickListener);
        mKeyButtonView.setOnClickListener(view -> {
            hide();
            onClickListener.onClick(view);
        });
    }

    @Override