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

Commit 9107251a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Show floating rotation button regardless of ime status" into udc-qpr-dev

parents 09d220d2 a1390853
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ public class FloatingRotationButton implements RotationButton {

    private AnimatedVectorDrawable mAnimatedDrawable;
    private boolean mIsShowing;
    private boolean mCanShow = true;
    private int mDisplayRotation;

    private boolean mIsTaskbarVisible = false;
@@ -150,7 +149,7 @@ public class FloatingRotationButton implements RotationButton {

    @Override
    public boolean show() {
        if (!mCanShow || mIsShowing) {
        if (mIsShowing) {
            return false;
        }

@@ -221,14 +220,6 @@ public class FloatingRotationButton implements RotationButton {
        mKeyButtonView.setDarkIntensity(darkIntensity);
    }

    @Override
    public void setCanShowRotationButton(boolean canShow) {
        mCanShow = canShow;
        if (!mCanShow) {
            hide();
        }
    }

    @Override
    public void onTaskbarStateChanged(boolean taskbarVisible, boolean taskbarStashed) {
        mIsTaskbarVisible = taskbarVisible;
+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ public interface RotationButton {
    default boolean isVisible() {
        return false;
    }
    default void setCanShowRotationButton(boolean canShow) {}
    default void onTaskbarStateChanged(boolean taskbarVisible, boolean taskbarStashed) {}
    default void updateIcon(int lightIconColor, int darkIconColor) { }
    default void setOnClickListener(View.OnClickListener onClickListener) { }
+0 −1
Original line number Diff line number Diff line
@@ -584,7 +584,6 @@ public class NavigationBarView extends FrameLayout {
        if (!visible) {
            mTransitionListener.onBackAltCleared();
        }
        mRotationButtonController.getRotationButton().setCanShowRotationButton(!visible);
    }

    void setDisabledFlags(int disabledFlags, SysUiState sysUiState) {