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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user