Skip to content
Commit 229efacc authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Clean up SHORT_SERVICE time change code.

- We now explicitly cancel stale timeout
- When needed, we now do so explicitly. Otherwise, we'll keep the
original handler events. The original code had an edge case bug
when startForground(SHORT_SERVICE) is called during after the timeout,
we'd post another timeout message, which would end up calling
onTimeout() again.

Test: Manual test using a test app
Bug: 257270313
Change-Id: Ic06dbb796ef16214667e9869ca9324c84fa3ab49
parent aa8ef2bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment