Fix launch animation from bottom row and end of grid
- Apply gridTranslationY when calculating taskRect so it's used to calculate RecnetsView pivot - Moved recentsViewScroll to RecentsView group and applied after recentsViewScale - Before: http://dr/file/d/1-Nrqa80J4FRbjcdZ3GZSeKwfQF8fN9a1/view?resourcekey=0-gYT9z1HA0YksW5Ujbzsmeg - After: http://dr/file/d/1-DpZrg5_nFeUKS-8APnLvG8SJVvke9BU/view?resourcekey=0-p59hm-abzpU7Y7tqWyneTQ Fix: 200813202 Test: Launch task from grid from top/bottom/left/right/focus Test: Launch task from left/middle/right in small screen Change-Id: I814512c02611f59a5a6d1f53411d42cf4f0f26b3
This commit is contained in:
@@ -4654,20 +4654,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
return position != -1 ? position : bottomRowIdArray.indexOf(taskView.getTaskViewId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns how many pixels the task is offset on the currently laid out secondary axis
|
||||
* according to {@link #mGridProgress}.
|
||||
*/
|
||||
public float getGridTranslationSecondary(int pageIndex) {
|
||||
TaskView taskView = getTaskViewAt(pageIndex);
|
||||
if (taskView == null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mOrientationHandler.getSecondaryValue(taskView.getGridTranslationX(),
|
||||
taskView.getGridTranslationY());
|
||||
}
|
||||
|
||||
public Consumer<MotionEvent> getEventDispatcher(float navbarRotation) {
|
||||
float degreesRotated;
|
||||
if (navbarRotation == 0) {
|
||||
|
||||
Reference in New Issue
Block a user