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

Commit 39fc1171 authored by Shawn Lee's avatar Shawn Lee
Browse files

[flexiglass] Fixes QS header never being set invisible when unlocked.

Bug: 306674974
Test: verified header visibility is no longer VISIBLE when unlocked with closed shade.
Flag: com.android.systemui.scene_container
Change-Id: If53ba2b31705b52386e6eb521d111d83154eb829
parent 4211f843
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import android.util.Log;
import android.util.MathUtils;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.WindowInsets;
@@ -463,6 +464,9 @@ public class QuickSettingsControllerImpl implements QuickSettingsController, Dum
        mJavaAdapter.alwaysCollectFlow(
                mCommunalTransitionViewModelLazy.get().isUmoOnCommunal(),
                this::setShouldUpdateSquishinessOnMedia);
        mJavaAdapter.alwaysCollectFlow(
                mShadeInteractor.isAnyExpanded(),
                this::onAnyExpandedChanged);
    }

    private void initNotificationStackScrollLayoutController() {
@@ -482,6 +486,10 @@ public class QuickSettingsControllerImpl implements QuickSettingsController, Dum
        }
    }

    private void onAnyExpandedChanged(boolean isAnyExpanded) {
        mQsFrame.setVisibility(isAnyExpanded ? View.VISIBLE : View.INVISIBLE);
    }

    private void onNotificationScrolled(int newScrollPosition) {
        updateExpansionEnabledAmbient();
    }