summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Josep del Rio <joseprio@google.com> 2024-05-08 11:32:09 +0000
committer Josep del Río <joseprio@google.com> 2024-05-10 21:19:33 +0000
commitb2d272bd5388d420109c8f8394b06c420f320de0 (patch)
tree883c410cfbc8f485ac4943bc69c1cd2dc8c3937e /libs/androidfw/AttributeResolution.cpp
parent812805e8e193d6ad01c7b1996b0da0025f75a3b3 (diff)
Dismiss dialog with Escape key if closeable
At the moment the Escape key will dismiss a dialog if it's not cancelable; however, this may not match the developer's intent, as it is not defined in the documentation that the system may opt to just dismiss it. At the moment, this can still happen if the developer called `setCanceledWhenTouchOutside(true)`, and `setCancelable(false)` afterwards. Escape should behave like "touching outside when possible, so this CL implements that behavior. Bug: 333416590 Test: Flashed on device, confirmed dialogs can still be closed with the Escape key. Flag: EXCEMPT bugfix Change-Id: I7a6823744b239809024af0152eb2b77f802d851e
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions