mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Rotate Overview Task Action Menu
Fixes: 153371258 Test: Tap on icon in portrait, landscape and seascape. Open menu then rotate phone. Change-Id: I38b018371561b502fe211a3c2ddea4ff7fde4274
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.res.Resources;
|
||||
import android.graphics.PointF;
|
||||
import android.graphics.RectF;
|
||||
import android.view.Surface;
|
||||
import android.view.View;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
|
||||
@@ -64,4 +65,14 @@ public class SeascapePagedViewHandler extends LandscapePagedViewHandler {
|
||||
float oldY = velocity.y;
|
||||
velocity.set(oldY, -oldX);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getTaskMenuX(float x, View thumbnailView) {
|
||||
return x;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getTaskMenuY(float y, View thumbnailView) {
|
||||
return y + thumbnailView.getMeasuredHeight();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user