summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ScriptGroup.java
diff options
context:
space:
mode:
authorYo Chiang <yochiang@google.com>2021-01-05 18:32:43 +0800
committerYo Chiang <yochiang@google.com>2021-03-11 08:32:53 +0000
commitc4f0b0099a414c51ecd6d9bc4787c0e5e9d5b04a (patch)
tree4f01f16a113b3ddfeee23bcb497d20ab07fca2e7 /rs/java/android/renderscript/ScriptGroup.java
parent78cf2f60e5539f4c628138afdf9a3c0a2b2c423e (diff)
Refactor DynamicSystemInstallationService notifications
Right now we use two flags to track the internal states of DSU notifications, mJustCancelledByUser and mKeepNotification. This makes the notification posting / dismissing logic very complicated, as any method can potentially modify the flags. This change refactors the logic around postStatus() and resetTaskAndStop() and remove the two flags. After this change, notification posting logic are consolidated within postStatus() and dismissing logic are consolidated within resetTaskAndStop(). Bug: 165471299 Test: Start a DSU installation and test "cancel" & "discard" Change-Id: I59548553e0e92399d322c301011dfd270e7bb0e9
Diffstat (limited to 'rs/java/android/renderscript/ScriptGroup.java')
0 files changed, 0 insertions, 0 deletions