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

Commit 1360a44d authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Improving performance of notification panel

This might not directly fix b/187139139 but it's definitely
step in a good direction and we shouldn't check Resources
every time when calculating clock position.

Bug: 187139139
Test: Performance tests run on demand
before: https://android-build.googleplex.com/builds/abtd/run/L97900000900103160
after: https://android-build.googleplex.com/builds/abtd/run/L52500000900103665
Change-Id: I9ef13f957a31232287dcdb9c9848fa8431409377
parent a254d7fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ import static com.android.systemui.classifier.Classifier.QS_COLLAPSE;
import static com.android.systemui.classifier.Classifier.QUICK_SETTINGS;
import static com.android.systemui.statusbar.StatusBarState.KEYGUARD;
import static com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout.ROWS_ALL;
import static com.android.systemui.util.Utils.shouldUseSplitNotificationShade;

import static java.lang.Float.isNaN;

@@ -1235,7 +1234,7 @@ public class NotificationPanelViewController extends PanelViewController {
                bypassEnabled, getUnlockedStackScrollerPadding(),
                computeQsExpansionFraction(),
                mDisplayCutoutTopInset,
                shouldUseSplitNotificationShade(mFeatureFlags, mResources));
                mShouldUseSplitNotificationShade);
        mClockPositionAlgorithm.run(mClockPositionResult);
        boolean animate = mNotificationStackScrollLayoutController.isAddOrRemoveAnimationPending();
        boolean animateClock = animate || mAnimateNextPositionUpdate;