fix: Conflict incoming changes from 15-dev

This commit is contained in:
Pun Butrach committed 2026-01-10 20:49:12 +07:00
1 parent 14e352c827
commit 2e76c99dad
1726 files changed
+146970 -95027

No files matched your search

@@ -141,11 +141,8 @@ public class FolderGridOrganizer {
* @return true if there was any change
*/
public boolean updateRankAndPos(ItemInfo item, int rank) {
Point pos = getPosForRank(rank);
if (!pos.equals(item.cellX, item.cellY) || rank != item.rank) {
if (rank != item.rank) {
item.rank = rank;
item.cellX = pos.x;
item.cellY = pos.y;
return true;
}
return false;
@@ -156,8 +153,13 @@ public class FolderGridOrganizer {
*/
public Point getPosForRank(int rank) {
int pagePos = rank % mMaxItemsPerPage;
mPoint.x = pagePos % mCountX;
mPoint.y = pagePos / mCountX;
if (mCountX == 0) {
mPoint.x = 0;
mPoint.y = 0;
} else {
mPoint.x = pagePos % mCountX;
mPoint.y = pagePos / mCountX;
}
return mPoint;
}