commit | 229efaccf4695f8ae6feff4d3d231e72c5bf2aab | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Thu Jan 19 15:31:56 2023 -0800 |
committer | Makoto Onuki <omakoto@google.com> | Thu Jan 19 15:31:56 2023 -0800 |
tree | 256cf5c0488ca9fa92a0ae1955926b938251d7e5 | |
parent | aa8ef2bcd77b62fc386c4c26c1d9568e07073463 [diff] |
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