Commit Graph

21 Commits

Author SHA1 Message Date
Winson Chung
dff7a73979 Fix Recents regressions
- Remove extra argument from the invocation of Recents from AM/WM, fetching
  the states directly. This also fixes the issue with the docked task from
  showing in Recents since the state will trigger the preloaded task stack
  to be invalidated.
- Move Recents stack update to onStart() to ensure that it is updated with
  the changes introduced in ag/3338461
- Fix an issue with the initial state being clobbered when entering split
  screen

Bug: 70279132
Test: Long press recents button to split screen, verify task is not visible
Change-Id: If5a3ca1d86fa0025d6b1e08abf73fe80a390ef8e
2018-01-19 03:44:05 +00:00
Matthew Ng
bf15587d0d Renamed moveTaskToDockedStack to setTaskWindowingModeSplitScreenPrimary
Renamed a few functions related to moveTaskToDockedStack to use the new
notion of split screen primary windows instead of docked stack. Most of
the calls that use moveTaskToDockedStack are renamed.

Test: go/wm_smoke
Bug: 68017311
Change-Id: I73df051a9261d213b3415ac132962d91ec632e0a
2017-10-27 17:09:39 -07:00
Winson Chung
ebe1ba1980 Fixing regression in Recents preloading.
- Changes in the CommandQueue callbacks resulted in the default
  implementation of preloadRecentApps() to be called instead of the
  actual implementation in the Recents component.
- Removing extraneous methods in the interface called from other parts of
  SystemUI.

Bug: 38390446
Test: Launch Recents, ensure that preloading is hit first on touch down on
      the button

Change-Id: I28f7ac47eafa76a53343505f3352760e6510c213
2017-05-18 16:03:11 -07:00
Jorim Jaggi
ddb449efd9 Get rid of a lot of binder calls
Lead to delays when entering recents.

Test: Open recents
Bug: 32668632
Change-Id: I7b5504d0c11208d9c4d55de2eace6407d186f25c
2017-05-13 12:34:25 +02:00
Jason Monk
764da991de Move recents CommandQueue callbacks to recents
This will make it a more common and less broken place for both
handset and TV.

Fixes: 34813216
Test: make and click on recents button.
Change-Id: I2fd9c3103e2be28a19497719ac5763c064beeed1
2017-02-02 14:13:16 -05:00
Jorim Jaggi
db21bbd2ca Fix wrong transition when recents is growing when entering
Bug: 27855229
Change-Id: I050305d16df6fe53abf5e74e1f9ee6c882dd7ead
2016-04-19 17:07:06 -07:00
Jorim Jaggi
681fc7b267 Fix wrong transition when dock minimized and docked app launched
When having an app docked and then going home, and then launching
the app from the homescreen, we had a wrong transition because
getTopMost task was already set to the launched app, because
getRunningTasks doesn't exclude the docked stack. Instead of adding
flags for getRunningTasks, which sounds risky, we just pass a "force"
value when we launch recents in this state.

Bug: 27154882
Change-Id: Iee4512fed13115dbbe8b74413ff1fa9b87afa0ef
2016-04-15 19:23:05 +00:00
Jorim Jaggi
29379ec859 TRON refinements for multi-window
Bug: 26013430
Change-Id: I89b139b4ca3e7b6a06d8b5b351d67ffac240f73f
2016-04-12 19:43:52 -07:00
Jorim Jaggi
cdb06caebb Grow recents when in multi-window on phones
- Make sure all methods in RecentsImpl are called from the main thread.
- On secondary users, call dockTopTask in correct process.
- When opening recents, split it differently when on phones.

Change-Id: I10224452b1a9c0ae691d64cceeae5bb93cc4f6d8
2016-01-26 12:21:29 -08:00
Winson
e6309aa57e Prevent docking via nav bar until user is set up.
- Also prevents docking if screen pinning is currently active.
- Fixes issue where you could go into recents when setting up a 
  secondary user.

Bug: 26438797
Bug: 26316912
Change-Id: I30576b52842b76184ef0b2252bc572f74a5d6db8
2016-01-11 20:13:14 +00:00
Jorim Jaggi
213cbe665b When dragging from the left side, dock on the right
In landscape, when dragging up from the left side, dock the current
app on the right side.

Change-Id: I3b1229e0d347db6cc1f55272c7d76694417977d0
2015-12-03 16:11:16 -08:00
Jorim Jaggi
9ea2f7ba31 Add ability to supply initial bounds when docking task
Add an optional parameter in moveTaskToDockedStack to supply an
initial rect to be used when creating the dockeds tack. Pass in
the adjusted rect when dragging up from the navbar so it doesn't
flicker anymore.

Change-Id: Ieb3c8c73b9e2a769a2ec6270bd76a713201a2aed
2015-11-24 15:08:49 -08:00
Jorim Jaggi
dd98d41e3a Add gesture to drag in recents from navigation bar
Change-Id: I672ed08f1019835891411b87e2d0de0290defff7
2015-11-19 14:10:28 -08:00
Jorim Jaggi
75b2597e58 Add long press on recents to dock top most task
- Change the gesture to unpin a locked task into long pressing
the back button.
- When long pressing recents, dock top most task.

Change-Id: I1386151e781f4034cfb97d3c8d46c709d19fe779
2015-10-27 08:17:03 -07:00
Winson
3e7e3aa8db Removing RecentsCallbacks.
- We can just refer to the PhoneStatusBar directly
  for callbacks similar to the screen pinning request.
2015-09-22 22:56:31 +00:00
Winson Chung
b1f749906f Initial changes to support swiping on the nav bar to switch affiliated tasks.
- Actual sideways animations to come once they've been finalized

Bug: 16846966
Change-Id: If6d40495498197a86a98f9b03f54ced3d2baf64a
2014-08-11 19:22:46 +00:00
Winson Chung
cdcd487aba Fixing issue where home was triggered on top of other activities being launched. (Bug 16823617)
- Also fixes issue with the Recents hide message being clobbered
2014-08-06 01:02:15 +00:00
Winson Chung
9214eff52a Fix regression in using visibility flags. 2014-06-12 13:59:25 -07:00
Winson Chung
6cb485fd2e Fixing regression in dismissing Recents.
- Restoring app info functionality when developer options are enabled and you long-press on the app icon.

Change-Id: I8a20ff5f595eefa20db5528c0d5b1a1f0b110834
2014-05-19 14:06:13 -07:00
Winson Chung
1e8d71b605 Initial changes to enable keyboard support with alternate Recents. (Bug 14067913)
Change-Id: Icc5d2a784ed3c3c27143eb04cbb4305549ee223a
2014-05-17 00:31:50 +00:00
John Spurlock
d08de37a22 Decouple recents from status bar.
Remove remaining references to recents package from status bar.

Introduce in-process "components" to the existing SystemUI base class
to make component boundaries explicit, and implement Recents as the
first component.

Change-Id: Ieefd386379a1f46806b31f68a4cacd76c093aea4
2013-06-24 14:30:12 -04:00