Widget resizing sometimes starts at incorrect position
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start in HomeScreenGrid, in the binding.resizeFrame.onResizeListener handler, and compare the widget's stored left/top/right/bottom with the grid items on the current page. Reproduce by resizing a 3x3 resizable widget with the steps in the issue and checking whether the position jumps after steps 2, 5 and 8. Done means the widget keeps its cell position through repeated resize sessions, without the reporter's workaround of copying the bounds onto every matching grid item.
由索引模型根据 Issue 内容生成。
描述
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
latest commit 8c3a74aae9451ba0fa23041988b172b62b3cc217, and 1.0.1 release
Affected Android/Custom ROM version
Android 12
Affected device model
Nokia 5.4
How did you install the app?
Built from source
Steps to reproduce the bug
- Add a resizable widget to the homescreen, and resize it to 3x3
- Long press on widget, select resize
- Move left drag point one cell to the right
- Exit resize view
- Resize same widget
- Move left drag point one cell to the left
- Exit resize view
- Resize same widget
Expected behavior
Resizing should work as expected. No unexpected jumps in widget position.
Actual behavior
After step 2, 5 or 8 the widget jumps one cell to the left or right (seemingly dependent on some previous state).
Screenshots/Screen recordings
I can record the issue if you cannot reproduce it.
Additional information
The resizable widget I reproduced the issue with is from my own app, but it does little more than the example widget that was automatically generated.
The issue can be fixed by adding the following to binding.resizeFrame.onResizeListener in HomeScreenGrid, but it seems like a bit of a hack:
gridItems.filterVisibleOnCurrentPageOnly().filter { it.id == item.id }.forEach { gridItem ->
gridItem.left = item.left
gridItem.top = item.top
gridItem.right = item.right
gridItem.bottom = item.bottom
}
- 主要语言
- Kotlin
- 星标
- 703
- 派生
- 85
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FossifyOrg/Launcher 的其他 Issue
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 78/100
FossifyOrg/Launcher#453 ·
维护者通常 1 天内回复
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 70/100
FossifyOrg/Launcher#447 ·
维护者通常 1 天内回复
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 72/100
FossifyOrg/Launcher#446 ·
维护者通常 1 天内回复
-
Lock disposition未关闭feature request needs triage
难度 3/5 1-2 天 新手友好度 45/100
FossifyOrg/Launcher#469 · 2 条评论 ·
维护者通常 1 天内回复
-
feature request needs triage
难度 3/5 1-2 天 新手友好度 58/100
FossifyOrg/Launcher#465 ·
维护者通常 1 天内回复
查看 FossifyOrg/Launcher 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
RevenueCat/purchases-hybrid-common#2039 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
partiql/partiql-scribe#223 ·
维护者通常 3 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
damontecres/Wholphin#2143 ·
维护者通常 2 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 76/100
-
enhancement needs-triage
难度 1/5 1 小时以内 新手友好度 78/100
facebook/facebook-android-sdk#1418 ·