summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2020-06-23 14:02:58 -0400
committerFabian Kozynski <kozynski@google.com>2020-06-23 14:02:58 -0400
commitf455951c665628637923f2ebabc51b56f00cde42 (patch)
tree0c5557c246de25d7c87e2f12c4365ad14ddb9607 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9de64deb897f56efb280d1bd866623cfe24be665 (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