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 committed 2020-05-04 11:58:11 -07:00
1 parent 5c6b320057
commit bb55f9e982
7 files changed
+29 -8

No files matched your search

@@ -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;
}