am d69e1138: Fix 4093841: Launcher crash after downloading app & hitting back

* commit 'd69e11384c9eefe49039b198edcece5d59c8868f':
  Fix 4093841: Launcher crash after downloading app & hitting back
This commit is contained in:
Patrick Dubroy
2011-03-15 10:39:54 -07:00
committed by Android Git Automerger

View File

@@ -264,8 +264,10 @@ public class BubbleTextView extends TextView implements VisibilityChangedBroadca
void setCellLayoutPressedOrFocusedIcon() {
CellLayoutChildren parent = (CellLayoutChildren) getParent();
CellLayout cellLayout = (CellLayout) parent.getParent();
cellLayout.setPressedOrFocusedIcon((mPressedOrFocusedBackground != null) ? this : null);
if (parent != null) {
CellLayout layout = (CellLayout) parent.getParent();
layout.setPressedOrFocusedIcon((mPressedOrFocusedBackground != null) ? this : null);
}
}
Bitmap getPressedOrFocusedBackground() {