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

Commit 3176ba53 authored by Justin Weir's avatar Justin Weir
Browse files

Fix SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE value on activity launch

Fixes: 325246498
Test: manual
Flag: NONE
Change-Id: If87187a81da0e7c85f82cfd09aada394771c1fa7
parent 18235e5f
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -1201,6 +1201,16 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
                                "mPrimaryBouncerToGoneTransitionViewModel.getNotificationAlpha()");
                    }, mMainDispatcher);
        }

        // Ensures that flags are updated when an activity launches
        collectFlow(mView,
                mShadeAnimationInteractor.isLaunchingActivity(),
                isLaunchingActivity -> {
                    if (isLaunchingActivity) {
                        updateSystemUiStateFlags();
                    }
                },
                mMainDispatcher);
    }

    @VisibleForTesting
@@ -3632,7 +3642,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
                    + isFullyExpanded() + " inQs=" + mQsController.getExpanded());
        }
        mSysUiState
                .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE, isPanelExpanded())
                .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE,
                        isPanelExpanded() && !isCollapsing())
                .setFlag(SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED,
                        isFullyExpanded() && !mQsController.getExpanded())
                .setFlag(SYSUI_STATE_QUICK_SETTINGS_EXPANDED,