Merge "Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml" into ub-launcher3-calgary

am: ac6d3a87ae

* commit 'ac6d3a87ae9a31873a34f3eae01979910740ade1':
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml

Change-Id: I768f13b539e4de683925f94d29d092023660c371
This commit is contained in:
Sunny Goyal
2016-05-09 21:11:02 +00:00
committed by android-build-merger
@@ -256,7 +256,7 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView implements Touc
@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);
}