commit | 80896721ae9524a7bb6dc7238ff0991745fe2a1f | [log] [tgz] |
---|---|---|
author | helencheuk <helencheuk@google.com> | Thu Aug 15 16:23:50 2024 +0100 |
committer | helencheuk <helencheuk@google.com> | Thu Aug 15 16:41:18 2024 +0100 |
tree | 40b409638e72bedc96966a80352e107f7a24d544 | |
parent | fee62395a263769198fafa329bdcbceffd8cfa12 [diff] |
Fix stuck focus outline after returning to home Sometimes SmartspaceViewContainer is not the LastFocusedItem in ItemFocusIndicatorHelper when triggering changeFocus, it would skip the hiding outline animation which causes the stuck focus outline. So the solution is to add a checking in "changeFocus" that if the LastFocusedItem is not the view calling changeFocus and it does not have focus now, it means no need to add or remove outline and could just return. Bug: 349019294 Test: after going to notification panel, touch/click could make the outline disappears. https://drive.google.com/file/d/1aXQ38CEqvzJVj7gBM-KNTCJSpzfwYZsn/view?usp=sharing Test: after going home from app in overview, touch/click make the outline disappears. https://drive.google.com/file/d/1DgYzAgIJqAHJ_DuYjswlCUBOiohprJze/view?usp=sharing Flag: EXEMPT bugfix Change-Id: I4613ba2fe92ec609055e48dc0b5ff53c2037a158