Use rotation based on PagedOrientationHandler instead of touch

Fixes: 154928106
Test: Tested overview w/ and w/o
home rotation enabled.

Change-Id: Ib7e91e51b2181824e5520ad69965ed3379302c27
This commit is contained in:
Vinit Nayak
2020-05-03 21:39:06 -07:00
parent 5c6b320057
commit bb55f9e982
7 changed files with 29 additions and 8 deletions

View File

@@ -173,6 +173,11 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
return 0;
}
@Override
public int getRotation() {
return Surface.ROTATION_0;
}
@Override
public void offsetTaskRect(RectF rect, float value, int displayRotation, int launcherRotation) {
if (displayRotation == Surface.ROTATION_0) {
@@ -243,7 +248,7 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler {
}
@Override
public int getTaskMenuLayoutOrientation() {
public int getTaskMenuLayoutOrientation(LinearLayout taskMenuLayout) {
return LinearLayout.VERTICAL;
}