Loading core/java/com/android/internal/policy/DecorView.java +11 −0 Original line number Diff line number Diff line Loading @@ -1158,6 +1158,17 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind lp.height = insets.getSystemWindowInsetBottom(); mNavigationGuard.setLayoutParams(lp); } updateNavigationGuardColor(); } } void updateNavigationGuardColor() { if (mNavigationGuard != null) { // Make navigation bar guard invisible if the transparent color is specified. // Only TRANSPARENT is sufficient for hiding the navigation bar if the no software // keyboard is shown by IMS. mNavigationGuard.setVisibility(mWindow.getNavigationBarColor() == Color.TRANSPARENT ? View.INVISIBLE : View.VISIBLE); } } Loading core/java/com/android/internal/policy/PhoneWindow.java +1 −0 Original line number Diff line number Diff line Loading @@ -3726,6 +3726,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mForcedNavigationBarColor = true; if (mDecor != null) { mDecor.updateColorViews(null, false /* animate */); mDecor.updateNavigationGuardColor(); } } Loading Loading
core/java/com/android/internal/policy/DecorView.java +11 −0 Original line number Diff line number Diff line Loading @@ -1158,6 +1158,17 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind lp.height = insets.getSystemWindowInsetBottom(); mNavigationGuard.setLayoutParams(lp); } updateNavigationGuardColor(); } } void updateNavigationGuardColor() { if (mNavigationGuard != null) { // Make navigation bar guard invisible if the transparent color is specified. // Only TRANSPARENT is sufficient for hiding the navigation bar if the no software // keyboard is shown by IMS. mNavigationGuard.setVisibility(mWindow.getNavigationBarColor() == Color.TRANSPARENT ? View.INVISIBLE : View.VISIBLE); } } Loading
core/java/com/android/internal/policy/PhoneWindow.java +1 −0 Original line number Diff line number Diff line Loading @@ -3726,6 +3726,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mForcedNavigationBarColor = true; if (mDecor != null) { mDecor.updateColorViews(null, false /* animate */); mDecor.updateNavigationGuardColor(); } } Loading