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

Commit b2b66d6a authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Avoid setting the same NavBar/StatusBar color" into main

parents ed4bd591 eb69c49c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3895,6 +3895,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {

    @Override
    public void setStatusBarColor(int color) {
        if (mStatusBarColor == color && mForcedStatusBarColor) {
            return;
        }
        mStatusBarColor = color;
        mForcedStatusBarColor = true;
        if (mDecor != null) {
@@ -3913,6 +3916,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {

    @Override
    public void setNavigationBarColor(int color) {
        if (mNavigationBarColor == color && mForcedNavigationBarColor) {
            return;
        }
        mNavigationBarColor = color;
        mForcedNavigationBarColor = true;
        if (mDecor != null) {