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

Commit 0fc76d95 authored by Wilhelm Fitzpatrick's avatar Wilhelm Fitzpatrick Committed by Gerrit Code Review
Browse files

Don't accidently clear TRANSPARENT_VERTICAL_NAV

The effect of the TRANSPARENT_VERTICAL_NAV flag was getting
accidently cleared as a result of setting an unrelated flag.

This flag is used by CameraNext to allow a transparent nav
bar to be used when in landscape mode, which is not a valid
thing under AOSP 5.1.

CYNGNOS-1165

Change-Id: Ib363adcb54dd2598a30926a5224c5b3b41316cbb
parent b180ab8e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3225,9 +3225,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

            // private flag to permit a transparent navbar when the bar is vertical (landscape)
            // this is buggy unless carefully controlled.
            if (mNavigationBarView != null) {
            if ((diff & View.SYSTEM_UI_ALLOW_TRANSPARENT_VERTICAL_NAV) != 0 &&
                mNavigationBarView != null) {
                mNavigationBarView.setTransparencyAllowedWhenVertical(
                        (diff & View.SYSTEM_UI_ALLOW_TRANSPARENT_VERTICAL_NAV) != 0);
                        (vis & View.SYSTEM_UI_ALLOW_TRANSPARENT_VERTICAL_NAV) != 0);
            }

            mSystemUiVisibility = newVal;