commit | 0099ca8fab618dfeefe25cb4c2146b2831900ee5 | [log] [tgz] |
---|---|---|
author | Arthur Hung <arthurhung@google.com> | Fri Jul 15 11:37:24 2022 +0000 |
committer | Arthur Hung <arthurhung@google.com> | Wed Jul 20 04:26:45 2022 +0000 |
tree | bb89171966c8bb3951da9c2f2831512f16980644 | |
parent | e2137ed5b3549be1fe2beb623aba468fdc629f92 [diff] |
Ignore back invoke when window focus has lost The back invoke target could lost focus during back navigation. To prevent the non-focused window could still trigger back action cause some unexpected behavior, this CL will listen focus changed and skip the back invoke call. Test: launch a trampoline activity and trigger back before next activity shown. Test: atest WindowOnBackInvokedDispatcherTest Bug: 238050065 Change-Id: Ifd345b2283c5d07628e2884db6e4e13f3ec31e83