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

Commit c1baf55b 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
Merged-In: If87187a81da0e7c85f82cfd09aada394771c1fa7
(cherry picked from commit 3176ba53)
parent 61f945b2
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -1200,6 +1200,16 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
                        mNotificationStackScrollLayoutController.setMaxAlphaForExpansion(alpha);
                    }, mMainDispatcher);
        }

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

    @VisibleForTesting
@@ -3622,7 +3632,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,