OSDN Git Service

Make sure pages are always accessible via left/right arrow keys.
authorTony Wickham <twickham@google.com>
Wed, 11 Nov 2015 17:25:38 +0000 (09:25 -0800)
committerTony Wickham <twickham@google.com>
Thu, 3 Dec 2015 22:18:06 +0000 (14:18 -0800)
commitaf78b59af19264105b8ce856defa5342d6fd584a
tree3c5625b918c2c2eeaf867f09147b37543c3e9a0d
parentb879abd2747c1c1473c8d2b9d9c97707da8218f3
Make sure pages are always accessible via left/right arrow keys.

- Handle NextPageFirstItem as first focusable item in reading order
- Handle PreviousPageLastItem as last focusable item in reading order
- Check the hotseat after the workspace in both cases above
- Dpad horizontal navigation (left/right) uses these as a last
  resort (Rule3) to guarantee an item takes focus if a page exists

Note that it is necessary to search for a focusable item because
widgets are not yet focusable.

Bug: 25591057
Change-Id: I953648bd76c657d660a38427fdd4108bf9963c23
src/com/android/launcher3/FocusHelper.java
src/com/android/launcher3/util/FocusLogic.java
tests/src/com/android/launcher3/util/FocusLogicTest.java