[automerge] Fix placement bug with split staging icon in RtL 2p: 43c79704ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17668514 Change-Id: I4a85a0dd0acb50a37736220c560d72ad24866797
This commit is contained in:
commit
05cd7428a7
4 files changed
+19
-22
No files matched your search
@@ -413,16 +413,15 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateStagedSplitIconParams(FrameLayout.LayoutParams out, float onScreenRectCenterX,
|
||||
public void updateStagedSplitIconParams(View out, float onScreenRectCenterX,
|
||||
float onScreenRectCenterY, float fullscreenScaleX, float fullscreenScaleY,
|
||||
int drawableWidth, int drawableHeight, DeviceProfile dp,
|
||||
@StagePosition int stagePosition) {
|
||||
float inset = dp.getInsets().top;
|
||||
out.leftMargin = Math.round(onScreenRectCenterX / fullscreenScaleX
|
||||
- 1.0f * drawableWidth / 2);
|
||||
out.topMargin = Math.round((onScreenRectCenterY + (inset / 2f)) / fullscreenScaleY
|
||||
- 1.0f * drawableHeight / 2);
|
||||
|
||||
out.setX(Math.round(onScreenRectCenterX / fullscreenScaleX
|
||||
- 1.0f * drawableWidth / 2));
|
||||
out.setY(Math.round((onScreenRectCenterY + (inset / 2f)) / fullscreenScaleY
|
||||
- 1.0f * drawableHeight / 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user