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

Commit dea354d6 authored by Chandru S's avatar Chandru S
Browse files

Fix RenderEffect getting applied during swipe up to bouncer

Previous condition was true even when we swipe up to the bouncer.

Test: verified manually using traces and logs
Bug: 392209635
Flag: com.android.systemui.bouncer_ui_revamp
Change-Id: If1a1b9182371a53f7fda138891870d41b57f3ae0
parent ca9279ee
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ public final class NotificationPanelViewController implements
        ShadeSurface, Dumpable, BrightnessMirrorShowingInteractor {

    public static final String TAG = NotificationPanelView.class.getSimpleName();
    private static final boolean DEBUG_LOGCAT = Compile.IS_DEBUG && Log.isLoggable(TAG, Log.DEBUG);
    private static final boolean DEBUG_LOGCAT = Compile.IS_DEBUG || Log.isLoggable(TAG, Log.DEBUG);
    private static final boolean DEBUG_DRAWABLE = false;
    /** The parallax amount of the quick settings translation when dragging down the panel. */
    public static final float QS_PARALLAX_AMOUNT = 0.175f;
@@ -988,7 +988,7 @@ public final class NotificationPanelViewController implements

    private void handleBouncerShowingChanged(Boolean isBouncerShowing) {
        if (!com.android.systemui.Flags.bouncerUiRevamp()) return;
        if (isBouncerShowing && isExpanded()) {
        if (isBouncerShowing && mStatusBarStateController.getState() != KEYGUARD) {
            if (mBlurRenderEffect == null) {
                mBlurRenderEffect = RenderEffect.createBlurEffect(
                        mBlurConfig.getMaxBlurRadiusPx(),
@@ -996,9 +996,12 @@ public final class NotificationPanelViewController implements
                        Shader.TileMode.CLAMP);
            }
            debugLog("Applying blur RenderEffect to shade.");
            Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_APP, "ShadeBlurRenderEffect", "active",
                    0);
            mView.setRenderEffect(mBlurRenderEffect);
        } else {
            debugLog("Resetting blur RenderEffect on shade.");
            Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_APP, "ShadeBlurRenderEffect", 0);
            mView.setRenderEffect(null);
        }
    }