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

Commit 20dbc499 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Nishith Khanna
Browse files

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

This reverts commit 870ecaf7.

Change-Id: Icd1fd00daeabd8820da61063f14745e54b2542c8
parent 23615a79
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -57,10 +57,4 @@
            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>
+0 −11
Original line number Diff line number Diff line
@@ -105,12 +105,6 @@ public class QSCustomizer extends LinearLayout {
        if (enabled != mSceneContainerEnabled) {
            mSceneContainerEnabled = enabled;
            updateTransparentViewHeight();
            if (mSceneContainerEnabled) {
                findViewById(R.id.nav_bar_background).setVisibility(View.GONE);
            } else {
                findViewById(R.id.nav_bar_background)
                        .setVisibility(mIsShowingNavBackdrop ? View.VISIBLE : View.GONE);
            }
        }
    }

@@ -120,13 +114,8 @@ 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 && !mSceneContainerEnabled ? View.VISIBLE : View.GONE);
        }
        updateNavColors(lightBarController);
    }