mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user