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

Commit 162e2c5f authored by Kevin's avatar Kevin
Browse files

Add bottom margin to recents Go again

Navigation bar insets are not always transparent and shouldn't be used
for margin. So we put the margin back to get a bit more space from the
nav bar.

Bug: 132461256
Test: Manual test, see margins
Change-Id: Id92e8b80a0d2c18c0a603942600366e355649ea8
parent 763a7bff
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -234,12 +234,8 @@ public final class IconRecentsView extends FrameLayout implements Insettable {
                        case ITEM_TYPE_CLEAR_ALL:
                            outRect.top = (int) res.getDimension(
                                    R.dimen.clear_all_item_view_top_margin);
                            int desiredBottomMargin = (int) res.getDimension(
                            outRect.bottom = (int) res.getDimension(
                                    R.dimen.clear_all_item_view_bottom_margin);
                            // Only add bottom margin if insets aren't enough.
                            if (mInsets.bottom < desiredBottomMargin) {
                                outRect.bottom = desiredBottomMargin - mInsets.bottom;
                            }
                            break;
                        case ITEM_TYPE_TASK:
                            int desiredTopMargin = (int) res.getDimension(