summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/BubbleTextView.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-06-17 13:26:23 -0700
committerAdam Cohen <adamcohen@google.com>2011-06-21 18:00:21 -0700
commit76fc085d28178a5d4fb3787ede956281a2cc3179 (patch)
tree98d95c5f3e069d36cea8fe699e569271a9d6750d /src/com/android/launcher2/BubbleTextView.java
parentb6c2a87511aeb5b7cc2c20417503dc52a283067c (diff)
downloadandroid_packages_apps_Trebuchet-76fc085d28178a5d4fb3787ede956281a2cc3179.tar.gz
android_packages_apps_Trebuchet-76fc085d28178a5d4fb3787ede956281a2cc3179.tar.bz2
android_packages_apps_Trebuchet-76fc085d28178a5d4fb3787ede956281a2cc3179.zip
New folder visualization, renaming, staggering reorder
Change-Id: I62963d225e6ea5d2ec9d8ebc8a6d73099f5d6c7f
Diffstat (limited to 'src/com/android/launcher2/BubbleTextView.java')
-rw-r--r--src/com/android/launcher2/BubbleTextView.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java
index 703b3a8cb..8c0c27ca2 100644
--- a/src/com/android/launcher2/BubbleTextView.java
+++ b/src/com/android/launcher2/BubbleTextView.java
@@ -262,10 +262,12 @@ public class BubbleTextView extends TextView implements VisibilityChangedBroadca
}
void setCellLayoutPressedOrFocusedIcon() {
- CellLayoutChildren parent = (CellLayoutChildren) getParent();
- if (parent != null) {
- CellLayout layout = (CellLayout) parent.getParent();
- layout.setPressedOrFocusedIcon((mPressedOrFocusedBackground != null) ? this : null);
+ if (getParent() instanceof CellLayoutChildren) {
+ CellLayoutChildren parent = (CellLayoutChildren) getParent();
+ if (parent != null) {
+ CellLayout layout = (CellLayout) parent.getParent();
+ layout.setPressedOrFocusedIcon((mPressedOrFocusedBackground != null) ? this : null);
+ }
}
}