summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author omarmt <omarmt@google.com> 2023-04-25 13:41:31 +0000
committer omarmt <omarmt@google.com> 2023-04-27 13:10:20 +0000
commit04cb994830dd5ce917b611f49aa374e3526189a9 (patch)
treea9ee7bc9a1bd28d0475498fd740909009927665c /libs/androidfw/ZipFileRO.cpp
parentf6adbe0d1fc89dbf5d0421007e06c4de71aa8a2b (diff)
Verify enableOnBackInvokedCallback at the app-level if ActivityInfo is null
The `ActivityInfo` should not be `null`, otherwise we will not be able to check if the activity has the `enableOnBackInvokedCallback="true|false"` flag. Unfortunately, there is no good default value in this case. Our options are: - Use the application flag, but this may cause random behavior that is difficult to troubleshoot. - Assume that the activity has `enableOnBackInvokedCallback="false"` in the manifest, which might have strange behavior but at least it would be a "known issue" (for example, if you activate predictive back and it doesn't work in that activity, you can check that XYZ is correct). Regardless of the reason, I would add a warning or error message explaining the problem. Test: mp droid Bug: 271860402 Change-Id: Ie91376ce18eb0a8d5528339a68e4db88a57cff86
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions