Eliminate custom alpha handling in CellLayout
Also rename CellLayoutChildren to ShortcutsAndWidgetsView Change-Id: Ic2ebc5497adb153cc2fce99730cc2c6fbdc101e6
This commit is contained in:
1 parent
47a876d443
commit
a52570f8f9
7 files changed
+108
-118
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user