Merge "Make sure folder positioning is behind flag" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
ded687da03
@@ -53,18 +53,22 @@ public class ClippedFolderIconLayoutRule {
|
||||
} else if (index >= MAX_NUM_ITEMS_IN_PREVIEW) {
|
||||
// Items beyond those displayed in the preview are animated to the center
|
||||
mTmpPoint[0] = mTmpPoint[1] = mAvailableSpace / 2 - (mIconSize * totalScale) / 2;
|
||||
} else if (index == 0) {
|
||||
// top left
|
||||
getGridPosition(0, 0, mTmpPoint);
|
||||
} else if (index == 1) {
|
||||
// top right
|
||||
getGridPosition(0, 1, mTmpPoint);
|
||||
} else if (index == 2) {
|
||||
// bottom left
|
||||
getGridPosition(1, 0, mTmpPoint);
|
||||
} else if (index == 3) {
|
||||
// bottom right
|
||||
getGridPosition(1, 1, mTmpPoint);
|
||||
} else if (Flags.enableLauncherIconShapes()) {
|
||||
if (index == 0) {
|
||||
// top left
|
||||
getGridPosition(0, 0, mTmpPoint);
|
||||
} else if (index == 1) {
|
||||
// top right
|
||||
getGridPosition(0, 1, mTmpPoint);
|
||||
} else if (index == 2) {
|
||||
// bottom left
|
||||
getGridPosition(1, 0, mTmpPoint);
|
||||
} else if (index == 3) {
|
||||
// bottom right
|
||||
getGridPosition(1, 1, mTmpPoint);
|
||||
}
|
||||
} else {
|
||||
getPosition(index, curNumItems, mTmpPoint);
|
||||
}
|
||||
|
||||
transX = mTmpPoint[0];
|
||||
|
||||
Reference in New Issue
Block a user