commit | 0316d6cd7a911b8714ae151d96c537f5e3c2d3c1 | [log] [tgz] |
---|---|---|
author | Samuel Fufa <sfufa@google.com> | Thu Sep 26 16:30:42 2019 -0700 |
committer | Samuel Fufa <sfufa@google.com> | Thu Sep 26 16:30:46 2019 -0700 |
tree | 66f76478d21e3c5c8ced0118c25a8eb405962186 | |
parent | c50fe371b16e903eefa33196703b710042b107e2 [diff] |
Fix ScrimView caret alignment and ignore touches Test:Manual Bug:79868152 Change-Id: Idd5a2b965173b8071697b50aac8760b0d84e469f
diff --git a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java index dc6b56e..26e9eaf 100644 --- a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java +++ b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
@@ -161,7 +161,7 @@ mMidProgress = OVERVIEW.getVerticalProgress(mLauncher); Rect hotseatPadding = dp.getHotseatLayoutPadding(); int hotseatSize = dp.hotseatBarSizePx + dp.getInsets().bottom - - hotseatPadding.bottom - hotseatPadding.top; + + hotseatPadding.bottom + hotseatPadding.top; float dragHandleTop = Math.min(hotseatSize, OverviewState.getDefaultSwipeHeight(context, dp)); mDragHandleProgress = 1 - (dragHandleTop / mShiftRange);
diff --git a/src/com/android/launcher3/views/ScrimView.java b/src/com/android/launcher3/views/ScrimView.java index da1df3f..9f59d78 100644 --- a/src/com/android/launcher3/views/ScrimView.java +++ b/src/com/android/launcher3/views/ScrimView.java
@@ -288,6 +288,7 @@ anim.addUpdateListener((v) -> invalidate(invalidateRegion)); getOverlay().add(drawable); anim.start(); + return true; } return value; }