Widget resizing sometimes starts at incorrect position
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
}
- Ngôn ngữ chính
- Kotlin
- Star
- 703
- Fork
- 85
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FossifyOrg/Launcher
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FossifyOrg/Launcher#453 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
FossifyOrg/Launcher#447 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FossifyOrg/Launcher#446 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Lock dispositionĐang mởfeature request needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
FossifyOrg/Launcher#469 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
FossifyOrg/Launcher#465 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của FossifyOrg/Launcher
Issue tương tự
-
[Submission] WeChat KidsĐang mởsubmit-adaption submit-adaption-pre
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
BetterAndroid/android-notification-icon-project#750 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
openbase/planetsudo.engine#107 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
native-cpu: -Wreturn-type in skainet_row_threads.c:150 (worker fn has no return)Có thể đã có người làm @Doomguy-BFG9000 đã nhận hôm nay. Đang mởgood first issue size:xs skill:native
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
SKaiNET-developers/SKaiNET#1358 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
IBRAHIMDANS/i18nSupportPlus#577 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PostHog/posthog-kmp#100 ·
Maintainer thường phản hồi trong vòng 2 ngày