Merge "Snap to task from other grid row if dismissing non-snapped focused task and not enough tasks remain in current grid row to snap to." into sc-v2-dev am: 13e121e35a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15771038 Change-Id: I778473e10913718cbbf266c1d8335f8f31ae5d37
This commit is contained in:
@@ -3000,6 +3000,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
: getBottomRowIdArray();
|
: getBottomRowIdArray();
|
||||||
int snappedIndex = taskViewIdArray.indexOf(snappedTaskViewId);
|
int snappedIndex = taskViewIdArray.indexOf(snappedTaskViewId);
|
||||||
taskViewIdArray.removeValue(dismissedTaskViewId);
|
taskViewIdArray.removeValue(dismissedTaskViewId);
|
||||||
|
if (finalNextFocusedTaskView != null) {
|
||||||
|
taskViewIdArray.removeValue(
|
||||||
|
finalNextFocusedTaskView.getTaskViewId());
|
||||||
|
}
|
||||||
if (snappedIndex < taskViewIdArray.size()) {
|
if (snappedIndex < taskViewIdArray.size()) {
|
||||||
taskViewIdToSnapTo = taskViewIdArray.get(snappedIndex);
|
taskViewIdToSnapTo = taskViewIdArray.get(snappedIndex);
|
||||||
} else if (snappedIndex == taskViewIdArray.size()) {
|
} else if (snappedIndex == taskViewIdArray.size()) {
|
||||||
@@ -3088,7 +3092,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
setCurrentPage(pageToSnapTo);
|
setCurrentPage(pageToSnapTo);
|
||||||
// Update various scroll depedent UI.
|
// Update various scroll-dependent UI.
|
||||||
dispatchScrollChanged();
|
dispatchScrollChanged();
|
||||||
updateActionsViewFocusedScroll();
|
updateActionsViewFocusedScroll();
|
||||||
if (isClearAllHidden()) {
|
if (isClearAllHidden()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user