Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java +6 −1 Original line number Diff line number Diff line Loading @@ -544,7 +544,12 @@ public class NavigationBarFragment extends Fragment implements Callbacks { // Set visibility, may fail if a11y service is active. // If invisible, call will stop animation. mNavigationBarView.setRotateButtonVisibility(true); int appliedVisibility = mNavigationBarView.setRotateButtonVisibility(true); if (appliedVisibility == View.VISIBLE) { // If the button will actually become visible and the navbar is about to hide, // tell the statusbar to keep it around for longer mStatusBar.touchAutoHide(); } } else { // Hide Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +5 −2 Original line number Diff line number Diff line Loading @@ -766,13 +766,13 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav if (setIcon) getRotateSuggestionButton().setImageDrawable(mRotateSuggestionIcon); } public void setRotateButtonVisibility(final boolean visible) { public int setRotateButtonVisibility(final boolean visible) { // Never show if a11y is visible final boolean adjVisible = visible && !mShowAccessibilityButton; final int vis = adjVisible ? View.VISIBLE : View.INVISIBLE; // No need to do anything if the request matches the current state if (vis == getRotateSuggestionButton().getVisibility()) return; if (vis == getRotateSuggestionButton().getVisibility()) return vis; getRotateSuggestionButton().setVisibility(vis); mShowRotateButton = visible; Loading @@ -789,6 +789,9 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav // Hide/restore other button visibility, if necessary updateNavButtonIcons(); // Return applied visibility return vis; } public boolean isRotateButtonVisible() { return mShowRotateButton; } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java +6 −1 Original line number Diff line number Diff line Loading @@ -544,7 +544,12 @@ public class NavigationBarFragment extends Fragment implements Callbacks { // Set visibility, may fail if a11y service is active. // If invisible, call will stop animation. mNavigationBarView.setRotateButtonVisibility(true); int appliedVisibility = mNavigationBarView.setRotateButtonVisibility(true); if (appliedVisibility == View.VISIBLE) { // If the button will actually become visible and the navbar is about to hide, // tell the statusbar to keep it around for longer mStatusBar.touchAutoHide(); } } else { // Hide Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +5 −2 Original line number Diff line number Diff line Loading @@ -766,13 +766,13 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav if (setIcon) getRotateSuggestionButton().setImageDrawable(mRotateSuggestionIcon); } public void setRotateButtonVisibility(final boolean visible) { public int setRotateButtonVisibility(final boolean visible) { // Never show if a11y is visible final boolean adjVisible = visible && !mShowAccessibilityButton; final int vis = adjVisible ? View.VISIBLE : View.INVISIBLE; // No need to do anything if the request matches the current state if (vis == getRotateSuggestionButton().getVisibility()) return; if (vis == getRotateSuggestionButton().getVisibility()) return vis; getRotateSuggestionButton().setVisibility(vis); mShowRotateButton = visible; Loading @@ -789,6 +789,9 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav // Hide/restore other button visibility, if necessary updateNavButtonIcons(); // Return applied visibility return vis; } public boolean isRotateButtonVisible() { return mShowRotateButton; } Loading