Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/Utilities.java +5 −3 Original line number Diff line number Diff line Loading @@ -107,9 +107,11 @@ public class Utilities { * Gets the updated navigation icon hints, based on the current ones and the given IME state. * * @param oldHints current navigation icon hints. * @param backDisposition the IME back disposition mode. * @param backDisposition the IME back disposition mode. Only takes effect if * {@code imeShown} is {@code true}. * @param imeShown whether the IME is currently visible. * @param showImeSwitcher whether the IME Switcher button should be shown. * @param showImeSwitcher whether the IME Switcher button should be shown. Only takes effect if * {@code imeShown} is {@code true}. */ @NavigationHint public static int calculateNavigationIconHints(@NavigationHint int oldHints, Loading @@ -134,7 +136,7 @@ public class Utilities { } else { hints &= ~NAVIGATION_HINT_IME_SHOWN; } if (showImeSwitcher) { if (showImeSwitcher && imeShown) { hints |= NAVIGATION_HINT_IME_SWITCHER_BUTTON_SHOWN; } else { hints &= ~NAVIGATION_HINT_IME_SWITCHER_BUTTON_SHOWN; Loading packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +0 −1 Original line number Diff line number Diff line Loading @@ -490,7 +490,6 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, // Count imperceptible changes as visible so we transition taskbar out quickly. imeShown = (vis & InputMethodService.IME_VISIBLE_IMPERCEPTIBLE) != 0; } showImeSwitcher = imeShown && showImeSwitcher; int hints = Utilities.calculateNavigationIconHints(mNavigationIconHints, backDisposition, imeShown, showImeSwitcher); if (hints == mNavigationIconHints) { Loading packages/SystemUI/src/com/android/systemui/navigationbar/views/NavigationBar.java +0 −1 Original line number Diff line number Diff line Loading @@ -1139,7 +1139,6 @@ public class NavigationBar extends ViewController<NavigationBarView> implements return; } boolean imeShown = mNavBarHelper.isImeShown(vis); showImeSwitcher = imeShown && showImeSwitcher; int hints = Utilities.calculateNavigationIconHints(mNavigationIconHints, backDisposition, imeShown, showImeSwitcher); if (hints == mNavigationIconHints) { Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/Utilities.java +5 −3 Original line number Diff line number Diff line Loading @@ -107,9 +107,11 @@ public class Utilities { * Gets the updated navigation icon hints, based on the current ones and the given IME state. * * @param oldHints current navigation icon hints. * @param backDisposition the IME back disposition mode. * @param backDisposition the IME back disposition mode. Only takes effect if * {@code imeShown} is {@code true}. * @param imeShown whether the IME is currently visible. * @param showImeSwitcher whether the IME Switcher button should be shown. * @param showImeSwitcher whether the IME Switcher button should be shown. Only takes effect if * {@code imeShown} is {@code true}. */ @NavigationHint public static int calculateNavigationIconHints(@NavigationHint int oldHints, Loading @@ -134,7 +136,7 @@ public class Utilities { } else { hints &= ~NAVIGATION_HINT_IME_SHOWN; } if (showImeSwitcher) { if (showImeSwitcher && imeShown) { hints |= NAVIGATION_HINT_IME_SWITCHER_BUTTON_SHOWN; } else { hints &= ~NAVIGATION_HINT_IME_SWITCHER_BUTTON_SHOWN; Loading
packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +0 −1 Original line number Diff line number Diff line Loading @@ -490,7 +490,6 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, // Count imperceptible changes as visible so we transition taskbar out quickly. imeShown = (vis & InputMethodService.IME_VISIBLE_IMPERCEPTIBLE) != 0; } showImeSwitcher = imeShown && showImeSwitcher; int hints = Utilities.calculateNavigationIconHints(mNavigationIconHints, backDisposition, imeShown, showImeSwitcher); if (hints == mNavigationIconHints) { Loading
packages/SystemUI/src/com/android/systemui/navigationbar/views/NavigationBar.java +0 −1 Original line number Diff line number Diff line Loading @@ -1139,7 +1139,6 @@ public class NavigationBar extends ViewController<NavigationBarView> implements return; } boolean imeShown = mNavBarHelper.isImeShown(vis); showImeSwitcher = imeShown && showImeSwitcher; int hints = Utilities.calculateNavigationIconHints(mNavigationIconHints, backDisposition, imeShown, showImeSwitcher); if (hints == mNavigationIconHints) { Loading