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:
1 parent
039501f41f
commit
6499e83c57
7 files changed
+40
-27
No files matched your search
@@ -101,12 +101,12 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> void set(T target, Int2DAction<T> action, int param) {
|
||||
public <T> void setPrimary(T target, Int2DAction<T> action, int param) {
|
||||
action.call(target, param, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> void set(T target, Float2DAction<T> action, float param) {
|
||||
public <T> void setPrimary(T target, Float2DAction<T> action, float param) {
|
||||
action.call(target, param, 0);
|
||||
}
|
||||
|
||||
@@ -115,6 +115,12 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
|
||||
action.call(target, 0, param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> void set(T target, Int2DAction<T> action, int primaryParam,
|
||||
int secondaryParam) {
|
||||
action.call(target, primaryParam, secondaryParam);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getPrimaryDirection(MotionEvent event, int pointerIndex) {
|
||||
return event.getX(pointerIndex);
|
||||
|
||||
Reference in new issue
Block a user