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:
1 parent
cf3bed973c
commit
e553e380d0
6 files changed
+124
-12
No files matched your search
@@ -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