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

Unverified Commit 870ecaf7 authored by Michael Bestas's avatar Michael Bestas Committed by Michael Bestas
Browse files

Revert "SystemUI: Remove nav bar background in QS customizer"

Reason for revert: Conflicts with QPR3 changes.

This reverts commit 5ad12c4c.

Change-Id: I427934d9750466dd444172802ec4a55e7257262b
parent d9fae2fc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -56,4 +56,10 @@
            android:importantForAccessibility="auto" />
    </com.android.keyguard.AlphaOptimizedLinearLayout>

    <View
        android:id="@+id/nav_bar_background"
        android:layout_width="match_parent"
        android:layout_height="@dimen/navigation_bar_size"
        android:layout_gravity="bottom"
        android:background="#ff000000" />
</merge>
+4 −0
Original line number Diff line number Diff line
@@ -93,8 +93,12 @@ public class QSCustomizer extends LinearLayout {
    }

    void updateNavBackDrop(Configuration newConfig, LightBarController lightBarController) {
        View navBackdrop = findViewById(R.id.nav_bar_background);
        mIsShowingNavBackdrop = newConfig.smallestScreenWidthDp >= 600
                || newConfig.orientation != Configuration.ORIENTATION_LANDSCAPE;
        if (navBackdrop != null) {
            navBackdrop.setVisibility(mIsShowingNavBackdrop ? View.VISIBLE : View.GONE);
        }
        updateNavColors(lightBarController);
    }