Merge "Allow button events in ambient." into nyc-dev
am: 1e413f5b77
* commit '1e413f5b77b4105479eb7686dfa9b8428bdf58a1':
Allow button events in ambient.
This commit is contained in:
@@ -3797,7 +3797,8 @@ public final class ViewRootImpl implements ViewParent,
|
||||
return true;
|
||||
} else if ((!mAttachInfo.mHasWindowFocus
|
||||
&& !q.mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) || mStopped
|
||||
|| mIsAmbientMode || (mPausedForTransition && !isBack(q.mEvent))) {
|
||||
|| (mIsAmbientMode && !q.mEvent.isFromSource(InputDevice.SOURCE_CLASS_BUTTON))
|
||||
|| (mPausedForTransition && !isBack(q.mEvent))) {
|
||||
// This is a focus event and the window doesn't currently have input focus or
|
||||
// has stopped. This could be an event that came back from the previous stage
|
||||
// but the window has lost focus or stopped in the meantime.
|
||||
|
||||
Reference in New Issue
Block a user