Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 012ce345 authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

Merge "Allow IMEs to opt out the opaque navigation guard view."

parents f1b40f65 0a9d1ea0
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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);
        }
    }

+1 −0
Original line number Diff line number Diff line
@@ -3726,6 +3726,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
        mForcedNavigationBarColor = true;
        if (mDecor != null) {
            mDecor.updateColorViews(null, false /* animate */);
            mDecor.updateNavigationGuardColor();
        }
    }