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

Commit fdc97ae2 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix flickering while dismissing docked stack

Make sure the docked stack is at least 1 px wide/high, or else
activity manager will think the bounds are empty and thus assume
fullscreen.

Change-Id: Ib71f8f77f4f594057ecf016914f1e6ea88995597
parent 2e95a488
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -48,17 +48,17 @@ public class DockedDividerUtils {
                outRect.top = position + dividerSize;
                break;
        }
        if (outRect.left > outRect.right) {
            outRect.left = outRect.right;
        if (outRect.left >= outRect.right) {
            outRect.left = outRect.right - 1;
        }
        if (outRect.top > outRect.bottom) {
            outRect.top = outRect.bottom;
        if (outRect.top >= outRect.bottom) {
            outRect.top = outRect.bottom - 1;
        }
        if (outRect.right < outRect.left) {
            outRect.right = outRect.left;
        if (outRect.right <= outRect.left) {
            outRect.right = outRect.left + 1;
        }
        if (outRect.bottom < outRect.top) {
            outRect.bottom = outRect.top;
        if (outRect.bottom <= outRect.top) {
            outRect.bottom = outRect.top + 1;
        }
    }