Get the view to be used as qsb bar from the launcher directly.

This will allow more control over the qsb visuals and behaviour in GEL.
Depends on ag/339203

Future changes:
- revert ag/344333 since we won't need the normal qsb to support hotword
  anymore
- Dragging icons over the Drop target bar (to remove/uninstall them or
  get App info) doesn't currently work in GEL. There might be future
  changes needed to fix that.

Change-Id: Ic498f0abee5ad99ef1644ff94f174b61f8e1f5f0
This commit is contained in:
Cristina Stancu
2013-08-07 17:20:14 +01:00
parent 2b931429db
commit 476493bcc3
5 changed files with 28 additions and 20 deletions

View File

@@ -58,8 +58,10 @@ public class DrawableStateProxyView extends LinearLayout {
View parent = (View) getParent();
mView = parent.findViewById(mViewId);
}
mView.setPressed(isPressed());
mView.setHovered(isHovered());
if (mView != null) {
mView.setPressed(isPressed());
mView.setHovered(isHovered());
}
}
@Override