OSDN Git Service

Better focus handling after dismissing task/scrolling.
authorWinson <winsonc@google.com>
Tue, 16 Feb 2016 01:43:01 +0000 (17:43 -0800)
committerWinson <winsonc@google.com>
Tue, 16 Feb 2016 01:43:01 +0000 (17:43 -0800)
commit23b0d3f66e8280c8638d8b0954edc0409d14de7f
treebdc9f8feb3c8760b13785d6f8622514ec2b1cd0f
parentbe8f35747c11e2be642c65b4d387458c373702c4
Better focus handling after dismissing task/scrolling.

- When there is no focused task, focus the next task closest to the
  stack scroll in the focus direction.
- Fixing small regression where no task would focus when alt-tabbing
  because the index was out of bounds.

Change-Id: I2555c9340f40affc371f52d51d88af0eeda53b2e
packages/SystemUI/src/com/android/systemui/recents/RecentsActivityLaunchState.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackViewTouchHandler.java