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

Commit 23eae89e authored by Jeff DeCew's avatar Jeff DeCew
Browse files

New Pipeline: Better disable some suspect old codepaths

Fixes: 205958197
Test: manual
Change-Id: Ie302d1c4cc09bfaa2f2003a3ec489be64c5d20e2
parent a1dd246c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4287,7 +4287,9 @@ public class StatusBar extends CoreStartable implements
                Log.v(TAG, "configuration changed: " + mContext.getResources().getConfiguration());
            }

            if (!mFeatureFlags.isNewNotifPipelineRenderingEnabled()) {
                mViewHierarchyManager.updateRowStates();
            }
            mScreenPinningRequest.onConfigurationChanged();
        }

+13 −8
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@ public class StatusBarNotificationPresenter implements NotificationPresenter,

    @Override
    public void updateNotificationViews(final String reason) {
        if (!mFeatureFlags.checkLegacyPipelineEnabled()) {
            return;
        }
        // The function updateRowStates depends on both of these being non-null, so check them here.
        // We may be called before they are set from DeviceProvisionedController's callback.
        if (mScrimController == null) return;
@@ -325,6 +328,7 @@ public class StatusBarNotificationPresenter implements NotificationPresenter,
        // End old BaseStatusBar.userSwitched
        if (MULTIUSER_DEBUG) mNotificationPanel.setHeaderDebugInfo("USER " + newUserId);
        mCommandQueue.animateCollapsePanels();
        if (!mFeatureFlags.isNewNotifPipelineRenderingEnabled()) {
            if (mReinflateNotificationsOnUserSwitched) {
                updateNotificationsOnDensityOrFontScaleChanged();
                mReinflateNotificationsOnUserSwitched = false;
@@ -334,6 +338,7 @@ public class StatusBarNotificationPresenter implements NotificationPresenter,
                mDispatchUiModeChangeOnUserSwitched = false;
            }
            updateNotificationViews("user switched");
        }
        mMediaManager.clearCurrentMediaNotification();
        mStatusBar.setLockscreenUser(newUserId);
        updateMediaMetaData(true, false);