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

Commit 6729f0be authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "SystemUI: apply alpha value to all layouts." into cm-11.0

parents 46ca5d34 c9ac84dc
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -93,11 +93,13 @@ public final class NavigationBarTransitions extends BarTransitions {
    }
    }


    private void setKeyButtonViewQuiescentAlpha(ButtonInfo info, float alpha, boolean animate) {
    private void setKeyButtonViewQuiescentAlpha(ButtonInfo info, float alpha, boolean animate) {
        View button = mView.findViewWithTag(info);
        for (View v : mView.mRotatedViews) {
            View button = v == null ? null : v.findViewWithTag(info);
            if (button != null) {
            if (button != null) {
                setKeyButtonViewQuiescentAlpha(button, alpha, animate);
                setKeyButtonViewQuiescentAlpha(button, alpha, animate);
            }
            }
        }
        }
    }


    private float alphaForMode(int mode) {
    private float alphaForMode(int mode) {
        final boolean isOpaque = mode == MODE_OPAQUE || mode == MODE_LIGHTS_OUT;
        final boolean isOpaque = mode == MODE_OPAQUE || mode == MODE_LIGHTS_OUT;