summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceParser.cpp
diff options
context:
space:
mode:
author Steve Elliott <steell@google.com> 2022-02-25 16:39:10 -0500
committer Steve Elliott <steell@google.com> 2022-03-04 12:38:47 -0500
commit21647dd91ce5c231e38b82d77b92208e8dd05abe (patch)
tree0ce7de4a21ad40444f15df8da06927c4c8fe8e4c /tools/aapt2/ResourceParser.cpp
parent3ba165ab8d9cd9c5f0221bcef415f9968baf445c (diff)
Extend lifetime of notifs during activity launch
Clicking on a notification can result in a chain of asynchronous code, depending on the state of the shade and keyguard. If the notification that was clicked is cancelled during this async flow, then when it's finally complete, if the notification has FLAG_AUTO_CANCEL, SystemUI will attempt to dismiss the notification, which is no longer there according to the pipeline, due to the aforementioned cancellation. This CL fixes the issue by introducing a new ActivityLaunchAnimCoordinater that registers a lifetime extender to keep notifications alive during their launch animation. Fixes: 219939676 Test: atest SystemUITests Test: 1. Install Notify.apk (go/notify-apk) 2. In the Notify app: Check off Delayed 5000 and Auto Cancel 3. Click "Add" and spam click "Update" (5-10 times should suffice) 4. Expand notification shade 5. Immediately tap the Notify notification when it gets posted Observe: no crashing Change-Id: I819ad840845df1bfa3acd71187c6ba47de9a64b7
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
0 files changed, 0 insertions, 0 deletions