diff options
author | Fabian Kozynski <kozynski@google.com> | 2020-06-23 14:02:58 -0400 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2020-06-23 14:02:58 -0400 |
commit | f455951c665628637923f2ebabc51b56f00cde42 (patch) | |
tree | 0c5557c246de25d7c87e2f12c4365ad14ddb9607 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 9de64deb897f56efb280d1bd866623cfe24be665 (diff) |
Fix lifecycle states in QSTileImpl
QSTileImpl set the lifecycle state to DESTROYED whenever it was supposed
to stop listening. Due to the correct enforcement that this is a final
state, it couldn't be moved out of it to RESUMED.
With this CL, QSTileImpl will toggle between RESUMED and STARTED to
determine it's listening state. Objects that track its lifecycle should
listen for ON_RESUME and ON_PAUSE events (like CallbackController).
Test: manual, toggle tiles
Test: manual, observe that CallbackController#removeCallback is called
Test: atest QSTileImplTest
Fixes: 159680648
Change-Id: I00fae4f13c446af103587e5f064277e8d42a7b22
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions