diff options
| author | 2022-03-30 16:52:30 +0200 | |
|---|---|---|
| committer | 2022-06-20 11:40:18 +0200 | |
| commit | a2e45f1ed1a3f74ca413f5d4ef815d50f7399c26 (patch) | |
| tree | 65d4e6236e153f806081911de1572e0acb94b48e /api/api.go | |
| parent | 41bcf6803e641463a0fc850f4463bd314df25e8a (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