diff options
author | Riddle Hsu <riddlehsu@google.com> | 2018-11-17 00:34:36 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2018-11-19 18:27:15 +0800 |
commit | 85bd04b13d7c893c92e4db3900f44aa5a23c8eb5 (patch) | |
tree | e1cc7d565ee1e37e032eedd834858467bffd97cf /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 627ffa9037767217b49e3c094e836d52824b879d (diff) |
Clear last focus of previous display when reparenting
Assume 2 displays:
D0 contains activities A, X
D1 contains an activity B
The update order of focus is from top to bottom. When reparenting
X from D0 to D1, and D1 becomes the top display:
1) D1: X gains focus, B loses focus
2) D0: A gains focus, X loses focus
That results the top activity X on top display 0 does not have focus
(the state in client side view root).
Bug: 119664976
Test: atest DisplayContentTests#testClearLastFocusWhenReparentingFocusedWindow
Test: atest WindowFocusTests
Change-Id: I5bf3546cde3ac6d4be45d1a971cda033663cc919
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions