summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-06-14 16:34:17 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-06-14 16:46:56 +0800
commit0ceb15e49297d4b2308d2395c46e650c91fa5366 (patch)
tree325b99015a0bdf32919192efc43759d185b9d1de /libs/androidfw/FileStream.cpp
parentf80ef9353004370127736a674f5cf1b76cf4fd55 (diff)
Catch exception for deferred window transaction
Currently a queued window container transaction may execute on display thread. Because the transaction might be deferred a while, its operations may be no longer valid. And since applyTransaction may throw: UnsupportedOperationException, IllegalArgumentException and RuntimeException, catch the exceptions for the deferred case to avoid crashing the system. Also ignore some hierarchy operations if the target container was detached. Fix: 282560294 Test: atest TransitionTests#testQueueWithLegacy Change-Id: Id5fc8c31f51b6def5f1b155f3a5a0d2c9d55df63
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions