commit | 5aec768ff4bd7fcdc043346485ab6b1c512d95b4 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Fri May 17 14:45:34 2019 -0700 |
committer | Winson Chung <winsonc@google.com> | Fri May 17 14:45:34 2019 -0700 |
tree | a74869a8c61a73f8cdb00e00e682bebe2b15d73f | |
parent | 62f53ddafbb7c139140dd3a80b0f6e9443d0ddfe [diff] |
Fix issue with restored task display ids - When tasks are restored, they don't have a valid display id yet, but they will still be started on the default display and should have the same options until proven otherwise. Bug: 132892578 Change-Id: I8ba0a976bd5682fbcda72ca1a98bf2517eb31312
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/TaskSystemShortcut.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/TaskSystemShortcut.java index 2c919b3..213c5d3 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/TaskSystemShortcut.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/TaskSystemShortcut.java
@@ -226,7 +226,7 @@ // TODO(b/118266305): Temporarily disable splitscreen for secondary display while new // implementation is enabled return !activity.getDeviceProfile().isMultiWindowMode - && displayId == DEFAULT_DISPLAY; + && (displayId == -1 || displayId == DEFAULT_DISPLAY); } @Override