Open richardioo opened 4 months ago
12.1-dev
is no longer active branch please use 14-dev
It's on 14-dev
. not outdated @MrSluffy
It's on
14-dev
. not outdated @MrSluffy
Someone wants to look at that bug? Very easy to solve
Someone wants to look at that bug? Very easy to solve
Why not solve it and do the PR?
I don't know how to edit the code properly, I never written in Android. Can you guide me please?
Describe the bug
The function
WorkspaceItemSpaceFinder.findSpaceForItem
is working correctly, except when having Smartspace ("At a Glance") enabled and added to the workspace. The functionfindNextAvailableIconSpaceInScreen
calculates which grid cells are already occupied - byoccupiedPos
items array. However, it does not "know" about the Smartspace widget and therefore consider its cells as0
s instead of1
s.occupiedPos
is the result ofscreenItems.get(screenId)
and it's missing the Smartspace widget.Steps to reproduce
Steps to reproduce the behavior:
topQsbOnFirstScreenEnabled
sofindSpaceForItem
works on screen0
. Or comment out line 70 inWorkspaceItemSpaceFinder.java
WorkspaceItemSpaceFinder.findSpaceForItem
- this can be done viaqueueItem
screenId=0
andcoordinates=[0,0]
while that space is actually occupied by Smartspaceremoving items from db ... Collision while binding workspace item ... Collides with null
Code snippet
Comment out line 70 in
WorkspaceItemSpaceFinder.java
.Add that to
LoaderTask.run
in line 255 - beforebindAllApps();
:Expected behavior
Suggested fix: make
findNextAvailableIconSpaceInScreen
know about the Smartspace widget and consider its cells as occupied. MakescreenItems.get(0)
to include the Smartspace widget in its result.Screenshots
No response
Device information
Additional context
No response