Fix issue with two back buttons showing during SUW

- We should also hide the back button when the IME is
  showing during SUW

Bug: 205803355
Test: Enter SUW, show IME and verify we hide it
Change-Id: I79b8061f01754e79508d82cdd265a97f218b13cc
This commit is contained in:
Winson Chung
2022-02-15 06:39:47 +00:00
parent b70131e1dd
commit 6fe89eafa4
@@ -237,6 +237,12 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
& Configuration.UI_MODE_NIGHT_MASK;
boolean isDarkTheme = mode == Configuration.UI_MODE_NIGHT_YES;
mTaskbarNavButtonDarkIntensity.updateValue(isDarkTheme ? 0 : 1);
if (mIsImeRenderingNavButtons) {
// Hide the back button while the IME is visible during SUW
mPropertyHolders.add(new StatePropertyHolder(mBackButton,
flags -> (flags & FLAG_IME_VISIBLE) == 0));
}
} else if (isInKidsMode) {
int iconSize = mContext.getResources().getDimensionPixelSize(
R.dimen.taskbar_icon_size_kids);