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

Commit 936233c7 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Make sure SysUI is not constantly redrawing status bar

When status bar was collapsed, bounds were negative thus triggering
a infinite draw loop.

Change-Id: I80100f394fa5e0dd5858569f9535563eac3aeeb4
parent a4a58efe
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -170,12 +170,13 @@ public class ScrimView extends View
            invalidate();
            return;
        }
        area.left = Math.max(area.left, 0);
        area.top = Math.max(area.top, 0);
        area.right = Math.min(area.right, getWidth());
        area.bottom = Math.min(area.bottom, getHeight());
        mExcludedRect.set(area);
        mHasExcludedArea = area.left < area.right && area.top < area.bottom;

        int left = Math.max(area.left, 0);
        int top = Math.max(area.top, 0);
        int right = Math.min(area.right, getWidth());
        int bottom = Math.min(area.bottom, getHeight());
        mExcludedRect.set(left, top, right, bottom);
        mHasExcludedArea = left < right && top < bottom;
        invalidate();
    }

+2 −2
Original line number Diff line number Diff line
@@ -1649,8 +1649,8 @@ public class NotificationStackScrollLayout extends ViewGroup
                bottom = Math.min(bottom, getHeight());
            }
        }
        mBackgroundBounds.top = top;
        mBackgroundBounds.bottom = bottom;
        mBackgroundBounds.top = Math.max(0, top);
        mBackgroundBounds.bottom = Math.min(getHeight(), bottom);
    }

    private ActivatableNotificationView getFirstPinnedHeadsUp() {