commit | 35de5a74e78061a4b4d515f1e15f3c6166cc89f0 | [log] [tgz] |
---|---|---|
author | Lucas Silva <lusilva@google.com> | Mon Dec 04 13:46:34 2023 -0500 |
committer | Lucas Silva <lusilva@google.com> | Mon Dec 04 13:49:46 2023 -0500 |
tree | 4d0c975529c26d433f008373a59aa71f447686fa | |
parent | 997be753b1fa92afc2273658813a4152aa31a27e [diff] |
Ensure config callback is always removed in dream overlay Currently, when repeatOnLifecycle is cancelled, it will throw a CancellationException which will cause the cleanup of the callback to be skipped. This change wraps the cleanup in a finally block so that it always runs. Fixes: 297320149 Test: verified callback is now removed when dream exits using log statements Flag: NA Change-Id: Ic6c32df3969c7fddbc544e369551a7a52f4cdae1