commit | ea98f5288bc8919a7238b6cf4ff50e9d5b6e1a29 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed May 04 14:03:40 2016 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Wed May 04 16:11:40 2016 -0700 |
tree | 0dc96403f1271b8084f7ce681b4a247b01ea013b | |
parent | bd42ba73b23d0470b675af73a721fc1d019be39d [diff] |
Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml Bug: 28562293 Change-Id: I005e23550184de29fa15eb70ab322615920b8947
diff --git a/src/com/android/launcher3/LauncherAppWidgetHostView.java b/src/com/android/launcher3/LauncherAppWidgetHostView.java index 570607e..28557d0 100644 --- a/src/com/android/launcher3/LauncherAppWidgetHostView.java +++ b/src/com/android/launcher3/LauncherAppWidgetHostView.java
@@ -256,7 +256,7 @@ @Override public void requestChildFocus(View child, View focused) { super.requestChildFocus(child, focused); - dispatchChildFocus(focused != null); + dispatchChildFocus(mChildrenFocused && focused != null); if (focused != null) { focused.setFocusableInTouchMode(false); }