diff options
author | Louis Chang <louischang@google.com> | 2018-10-24 21:04:51 +0800 |
---|---|---|
committer | Louis Chang <louischang@google.com> | 2018-10-30 08:49:04 +0000 |
commit | 40750098ac806eb71cc1e52e0ceb091f3f263e9e (patch) | |
tree | 14c033d16cb8de28258fa791ca7c3e4b188bfe97 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 0215e9930fda96639f0c9623164ad82fca12728e (diff) |
Use the display of existing task as preferred
While reparenting a task to an external freeform display,
the task was moving back on default display because of
no preferred display information specified - option and
source are null for #getPreferredLaunchDisplay - while
laying out the task.
For example, opening Chrome on a secondary freefrom display
will only bring back Chrome on default display.
So, we use the display where the task was on as the preferred
display when nothing specified.
Bug: 118354537
Test: verified by following the reproduce steps in comment#1
atest TaskLaunchParamsModifierTests
Change-Id: I6d7a9e2d53a69bd2675dbab812a9e1a7791b1342
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions