mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Re-enable home screen rotation
Launcher home screen rotation now works with fixed transform. When using Quickstep while holding the phone from an orientation different than the orientation of the touch, the overview shown will be that of the phone orientation, not the touch orientation. Easier to see this be quickswitching from portrait to landscape app, turning phone, then going to overview from the original region you swiped. Fixes: 150214193 Test: Created test apps and fixed them to various rotations to test. Change-Id: Ic6565cd0ed33c951f45ccb97278045c6070e438e
This commit is contained in:
@@ -77,6 +77,11 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
return displacement > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLayoutNaturalToLauncher() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void adjustFloatingIconStartVelocity(PointF velocity) {
|
||||
float oldX = velocity.x;
|
||||
@@ -182,7 +187,7 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void offsetTaskRect(RectF rect, float value, int displayRotation) {
|
||||
public void offsetTaskRect(RectF rect, float value, int displayRotation, int launcherRotation) {
|
||||
if (displayRotation == Surface.ROTATION_0) {
|
||||
rect.offset(0, value);
|
||||
} else if (displayRotation == Surface.ROTATION_90) {
|
||||
|
||||
Reference in New Issue
Block a user