OSDN Git Service

Fixed default-cluster and empty-cluster navigation behavior
authorEvan Rosky <erosky@google.com>
Tue, 14 Feb 2017 02:04:43 +0000 (18:04 -0800)
committerEvan Rosky <erosky@google.com>
Thu, 16 Feb 2017 01:30:34 +0000 (17:30 -0800)
commit3ac6463724734b983170328ea0e6cad40eb79502
tree34d8763780c7490549f93af8320f36b6efce582e
parent79b9853f4961a227d5be6f85258b87fb1d19acc8
Fixed default-cluster and empty-cluster navigation behavior

Cluster navigation would get stuck if:
 - there was an empty cluster (nothing to focus)
 - there were views NOT in a cluster and the global
   default-focused view was in a cluster.

This will skip over empty clusters during cluster navigation
and when the default "cluster" is active, it will try to
focus a non-clustered focusable instead of the global default
(and if there aren't any non-clustered focusables, it will
skip over the default "cluster" as it now does with actual
clusters.

Bug: 35273052
Bug: 34361282
Test: Added/Updated CTS tests and checked behavior in a test app.
Change-Id: I0b4d55707203f6a0453f25313f940927d59a9b31
api/test-current.txt
core/java/android/view/View.java
core/java/android/view/ViewGroup.java
core/java/android/view/ViewRootImpl.java