summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
diff options
context:
space:
mode:
authorAndy Wickham <awickham@google.com>2019-08-28 14:46:34 -0700
committerAndy Wickham <awickham@google.com>2019-09-03 22:05:20 +0000
commit90c16ace8a305229f42568d6f568a50b326a841b (patch)
tree5a8c982791e43e09e743bea5b7c8526a904cef18 /quickstep/src/com/android/quickstep/views/ShelfScrimView.java
parentc40872b913ac657561d4fbfa0289c1f550756588 (diff)
downloadandroid_packages_apps_Trebuchet-90c16ace8a305229f42568d6f568a50b326a841b.tar.gz
android_packages_apps_Trebuchet-90c16ace8a305229f42568d6f568a50b326a841b.tar.bz2
android_packages_apps_Trebuchet-90c16ace8a305229f42568d6f568a50b326a841b.zip
Reduces padding of the Overview shelf in no button mode.
Before: https://screenshot.googleplex.com/iw6baTCfoy2.png After: https://screenshot.googleplex.com/8CcsQvLhYDo.png Desired: https://b.corp.google.com/action/issues/139551306/attachments/26925873?download=false Test: Examined before and after padding and verified 3-button is unaffected. Fixes: 139551306 Change-Id: Ia416399cf25e7c6c2fb8aa84ad20e7ad74dcd31b (cherry picked from commit ddc9622e92fb5a4b211a5942ec679d195dc10d19)
Diffstat (limited to 'quickstep/src/com/android/quickstep/views/ShelfScrimView.java')
-rw-r--r--quickstep/src/com/android/quickstep/views/ShelfScrimView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
index 3747f9a8b..dc6b56eec 100644
--- a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
+++ b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
@@ -156,12 +156,14 @@ public class ShelfScrimView extends ScrimView implements NavigationModeChangeLis
mDragHandleProgress = 1;
mMidAlpha = 0;
} else {
- mMidAlpha = Themes.getAttrInteger(getContext(), R.attr.allAppsInterimScrimAlpha);
+ Context context = getContext();
+ mMidAlpha = Themes.getAttrInteger(context, R.attr.allAppsInterimScrimAlpha);
mMidProgress = OVERVIEW.getVerticalProgress(mLauncher);
Rect hotseatPadding = dp.getHotseatLayoutPadding();
int hotseatSize = dp.hotseatBarSizePx + dp.getInsets().bottom
- hotseatPadding.bottom - hotseatPadding.top;
- float dragHandleTop = Math.min(hotseatSize, OverviewState.getDefaultSwipeHeight(dp));
+ float dragHandleTop =
+ Math.min(hotseatSize, OverviewState.getDefaultSwipeHeight(context, dp));
mDragHandleProgress = 1 - (dragHandleTop / mShiftRange);
}
mTopOffset = dp.getInsets().top - mShelfOffset;