Fix issue with grouped task rects being calculated slightly off
- This was causing bleed through between split tasks and perhaps some rounded corners to be calculated incorrectly - Also reset the translation after it is adjusted for dismissing in case the dismiss gesture is canceled. This doesn't fix the issue with bleed through between the task views (to be fixed separately), but makes sure it isn't permanently set on the task Bug: 206739664 Test: Split tasks, swipe up and check the bounds Change-Id: I34430e958ca7a75f48621bc27a281e93fdf97179
This commit is contained in:
@@ -3014,6 +3014,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
|
||||
@SuppressWarnings("WrongCall")
|
||||
private void onEnd(boolean success) {
|
||||
// Reset task translations as they may have updated via animations in
|
||||
// createTaskDismissAnimation
|
||||
resetTaskVisuals();
|
||||
|
||||
if (success) {
|
||||
if (shouldRemoveTask) {
|
||||
if (dismissedTaskView.getTask() != null) {
|
||||
@@ -3030,10 +3034,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
}
|
||||
}
|
||||
|
||||
// Reset task translations as they may have updated via animations in
|
||||
// createTaskDismissAnimation
|
||||
resetTaskVisuals();
|
||||
|
||||
int pageToSnapTo = mCurrentPage;
|
||||
mCurrentPageScrollDiff = 0;
|
||||
int taskViewIdToSnapTo = -1;
|
||||
|
||||
Reference in New Issue
Block a user