OSDN Git Service

2D Recents: Fix issue with undocking only one task
authorJiaquan He <hejq@google.com>
Tue, 17 Jan 2017 21:25:33 +0000 (13:25 -0800)
committerJiaquan He <hejq@google.com>
Tue, 17 Jan 2017 22:52:23 +0000 (14:52 -0800)
commit244bac6c8bb8c7ef621786b42cf26dafaa417829
treeb5d384c36d619290884c25ae71f6f83841659ef5
parent79bf392dc6d50436ff16693267c808fc115ab07c
2D Recents: Fix issue with undocking only one task

While there's only one task and we undock it, it's not in the Recents
task list. In this change, we just reset the transform and return it.

Test: Checked that Recents works properly while docking and undocking a
task and it's the only task running.
Bug: 32101881

Change-Id: I1207b546ff2864018c8d9bf2520f4690762b2d27
packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java