Place TaskMenuView aligned with secondary split thumbnail

* Use consistent divider calculations in
different methods

Fixes: 245610772
Fixes: 218784487

Test: Open task menu view in split pair in landscape/
seascape/portrait, real and fake.

Change-Id: If1bbc7a0d4f1767584d0fc8cf549130f35b8e4a3
This commit is contained in:
Vinit Nayak committed 2022-09-09 11:25:08 -07:00
1 parent cd8541495a
commit 2e4dcb16a7
5 files changed
+60 -21

No files matched your search

@@ -230,6 +230,14 @@ public interface PagedOrientationHandler {
/** @return Either 1 or -1, a factor to multiply by so the animation goes the correct way. */
int getTaskDragDisplacementFactor(boolean isRtl);
/**
* Calls the corresponding {@link View#setX(float)} or {@link View#setY(float)}
* on {@param taskMenuView} by taking the space needed by {@param primarySnapshotView} into
* account.
* This is expected to only be called for secondary (bottom/right) tasks.
*/
void setSecondaryTaskMenuPosition(SplitBounds splitBounds, View taskView,
DeviceProfile deviceProfile, View primarySnaphotView, View taskMenuView);
/**
* Maps the velocity from the coordinate plane of the foreground app to that
* of Launcher's (which now will always be portrait)