ActivityWatch / ActivityWatch/aw-android

Stopwatch continues running after stopped

Đang mở
#70 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Kotlin
Star
265
Fork
57
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
19

Mô tả

I have encountered a bug in the "Stopwatch" feature. It sometimes restarts a stopwatch, after I already stopped it.

I assume that this happens when the view is closed/terminated, before the "stop event" (or whatever the correct term is) is sent to the rust-backend. The best method I found to reproduce is:
* Start a stopwatch
* Let the stopwatch run for some time
* Stop the stopwatch
* Close the view manually, by using the "overview" button of the phone and closing the app
* Re-open activitywatch
* The stopwatch runs again

This does not trigger the bug 100%, so I would assume that there is some racing condition or the operation takes some time. My assumptions would have been that after pressing stop, the termination is directly "committed", but this does not seem to be the case.
The bug also happens, when I don't close the view manually, just by switching to another app.

ActivityWatch: v.0.10.0 (rust) (Installed over Google playstore)
Android: 8.0.0 (Samsung Galaxy S7)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.