Loading packages/SystemUI/shared/src/com/android/systemui/shared/rotation/FloatingRotationButton.java +10 −1 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ public class FloatingRotationButton implements RotationButton { private AnimatedVectorDrawable mAnimatedDrawable; private boolean mIsShowing; private boolean mCanShow = true; private int mDisplayRotation; private boolean mIsTaskbarVisible = false; Loading Loading @@ -148,7 +149,7 @@ public class FloatingRotationButton implements RotationButton { @Override public boolean show() { if (mIsShowing) { if (!mCanShow || mIsShowing) { return false; } Loading Loading @@ -219,6 +220,14 @@ 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; Loading packages/SystemUI/shared/src/com/android/systemui/shared/rotation/RotationButton.java +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ 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) { } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/rotation/FloatingRotationButton.java +10 −1 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ public class FloatingRotationButton implements RotationButton { private AnimatedVectorDrawable mAnimatedDrawable; private boolean mIsShowing; private boolean mCanShow = true; private int mDisplayRotation; private boolean mIsTaskbarVisible = false; Loading Loading @@ -148,7 +149,7 @@ public class FloatingRotationButton implements RotationButton { @Override public boolean show() { if (mIsShowing) { if (!mCanShow || mIsShowing) { return false; } Loading Loading @@ -219,6 +220,14 @@ 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; Loading
packages/SystemUI/shared/src/com/android/systemui/shared/rotation/RotationButton.java +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ 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) { } Loading