Consider launching task's position on screen in pivot calculation
- Instead of using RecentsViewScroll, put task's position offset versus current scroll as TaskRect calculation, so it's considered when calculating for putting task to full screen - Revert back RecentsViewScroll to apply before RecentsViewScale - Added new property in PagedOrientationHandler to apply both primary/secondary param without clearing the other, and renamed an existing method Fix: 206972618 Test: Quick switching Test: Launch task from grid, launch side task from carousel overview Change-Id: I5977975ed1e930ad70b81d83513d8f3a00c0aed4
This commit is contained in:
@@ -747,7 +747,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
|
||||
int primarySize = mOrientationHandler.getPrimaryValue(getWidth(), getHeight());
|
||||
int scroll = OverScroll.dampedScroll(getUndampedOverScrollShift(), primarySize);
|
||||
mOrientationHandler.set(canvas, CANVAS_TRANSLATE, scroll);
|
||||
mOrientationHandler.setPrimary(canvas, CANVAS_TRANSLATE, scroll);
|
||||
|
||||
if (mOverScrollShift != scroll) {
|
||||
mOverScrollShift = scroll;
|
||||
|
||||
Reference in New Issue
Block a user