OSDN Git Service

Focus gain sends focus loss through the focus stack
authorJean-Michel Trivi <jmtrivi@google.com>
Tue, 30 Jul 2013 22:09:33 +0000 (15:09 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Wed, 31 Jul 2013 00:13:00 +0000 (17:13 -0700)
commitcbb212ff6f06b004ae19dfb6958ee3852716bbdc
tree5155d900d75b0230aa10cd4376cd1b202e7a78e7
parent8847633fc4869a701daa03f63a619e3047cda5bb
Focus gain sends focus loss through the focus stack

When a new focus owner lands on the stack, don't just make the
 previous top of the stack lose focus, propagate the loss throughout
 the stack.
Only dispatch focus loss on focus loss state change
Remove canDispatchFocus() method as it now doesn't need to be known
 (and shouldn't be known) outside of the implementation.
Fix error where the focus code for a focus gain request should
 always be a focus loss code.

Bug 8315302

Change-Id: I92c8f51fdcc090851d34d00fefed916e25da40c1
media/java/android/media/FocusRequester.java
media/java/android/media/MediaFocusControl.java