diff options
author | Kevin <kevhan@google.com> | 2019-05-10 16:48:58 -0700 |
---|---|---|
committer | Kevin <kevhan@google.com> | 2019-05-10 16:48:58 -0700 |
commit | 162e2c5fb0dfc87810334890d9758128ca72f17e (patch) | |
tree | 7ecf1eafab5554496ac5459152c5aac87d1cc024 /go/quickstep/src/com | |
parent | 763a7bffa32ac95bc1f82bf6bd591627c3c73f53 (diff) | |
download | android_packages_apps_Trebuchet-162e2c5fb0dfc87810334890d9758128ca72f17e.tar.gz android_packages_apps_Trebuchet-162e2c5fb0dfc87810334890d9758128ca72f17e.tar.bz2 android_packages_apps_Trebuchet-162e2c5fb0dfc87810334890d9758128ca72f17e.zip |
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
Diffstat (limited to 'go/quickstep/src/com')
-rw-r--r-- | go/quickstep/src/com/android/quickstep/views/IconRecentsView.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java index 771c7d7fa..c5e9cf42c 100644 --- a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java +++ b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java @@ -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( |