Merge "Select task is broken on display large size" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
efc5d81209
@@ -4382,11 +4382,14 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
|
||||
private void updatePivots() {
|
||||
if (mOverviewSelectEnabled) {
|
||||
getModalTaskSize(mTempRect);
|
||||
Rect selectedTaskPosition = getSelectedTaskBounds();
|
||||
|
||||
Utilities.getPivotsForScalingRectToRect(mTempRect, selectedTaskPosition,
|
||||
mTempPointF);
|
||||
if (enableGridOnlyOverview()) {
|
||||
getModalTaskSize(mTempRect);
|
||||
Rect selectedTaskPosition = getSelectedTaskBounds();
|
||||
Utilities.getPivotsForScalingRectToRect(mTempRect, selectedTaskPosition,
|
||||
mTempPointF);
|
||||
} else {
|
||||
mTempPointF.set(mLastComputedTaskSize.centerX(), mLastComputedTaskSize.bottom);
|
||||
}
|
||||
} else {
|
||||
mTempRect.set(mLastComputedTaskSize);
|
||||
// Only update pivot when it is tablet and not in grid yet, so the pivot is correct
|
||||
@@ -5709,11 +5712,20 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
}
|
||||
|
||||
private void updateEnabledOverlays() {
|
||||
TaskView focusedTaskView = getFocusedTaskView();
|
||||
int taskCount = getTaskViewCount();
|
||||
for (int i = 0; i < taskCount; i++) {
|
||||
TaskView taskView = requireTaskViewAt(i);
|
||||
if (taskView == focusedTaskView) {
|
||||
continue;
|
||||
}
|
||||
taskView.setOverlayEnabled(mOverlayEnabled && isTaskViewFullyVisible(taskView));
|
||||
}
|
||||
// Focus task overlay should be enabled and refreshed at last
|
||||
if (focusedTaskView != null) {
|
||||
focusedTaskView.setOverlayEnabled(
|
||||
mOverlayEnabled && isTaskViewFullyVisible(focusedTaskView));
|
||||
}
|
||||
}
|
||||
|
||||
public void setOverlayEnabled(boolean overlayEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user