mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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:
@@ -176,6 +176,11 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
return 90;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRotation() {
|
||||
return Surface.ROTATION_90;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void offsetTaskRect(RectF rect, float value, int displayRotation, int launcherRotation) {
|
||||
if (displayRotation == Surface.ROTATION_0) {
|
||||
@@ -246,7 +251,7 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTaskMenuLayoutOrientation() {
|
||||
public int getTaskMenuLayoutOrientation(LinearLayout taskMenuLayout) {
|
||||
return LinearLayout.HORIZONTAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user