summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Vadim Caen <caen@google.com> 2022-03-30 16:52:30 +0200
committer Vadim Caen <caen@google.com> 2022-06-20 11:40:18 +0200
commita2e45f1ed1a3f74ca413f5d4ef815d50f7399c26 (patch)
tree65d4e6236e153f806081911de1572e0acb94b48e /api/api.go
parent41bcf6803e641463a0fc850f4463bd314df25e8a (diff)
Prevent callback registration when back flag is disabled
When the enableOnBackInvokedCallback is set to false (or not set), registering an OnBackInvokedCallback should be a no-op to avoid overriding the default compat callback. Test: Manual testing registering a callback on an app with the flag disabled and doing a back gesture. Currently we don't have test executing a back gesture so automated tests are not possible Bug: 235206960 Change-Id: I54d843f11130a78ed5a68cbe4722e601a2086ee1 Merged-In: I54d843f11130a78ed5a68cbe4722e601a2086ee1 (cherry picked from commit aa48dc3c2db92189055804878b88a51f0cf8e955)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions