Eliminate custom alpha handling in CellLayout

Also rename CellLayoutChildren to ShortcutsAndWidgetsView

Change-Id: Ic2ebc5497adb153cc2fce99730cc2c6fbdc101e6
This commit is contained in:
Michael Jurka
2012-03-20 03:18:20 -07:00
parent 47a876d443
commit a52570f8f9
7 changed files with 108 additions and 118 deletions

View File

@@ -247,8 +247,8 @@ public class BubbleTextView extends TextView {
}
void setCellLayoutPressedOrFocusedIcon() {
if (getParent() instanceof CellLayoutChildren) {
CellLayoutChildren parent = (CellLayoutChildren) getParent();
if (getParent() instanceof ShortcutAndWidgetContainer) {
ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) getParent();
if (parent != null) {
CellLayout layout = (CellLayout) parent.getParent();
layout.setPressedOrFocusedIcon((mPressedOrFocusedBackground != null) ? this : null);