summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/BubbleTextView.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-08-17 11:03:03 -0400
committerJoe Onorato <joeo@android.com>2009-08-24 14:58:44 -0400
commit9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d (patch)
treebb6f3ea57e53ccf695bd7cf2e3db33786506be5c /src/com/android/launcher2/BubbleTextView.java
parent02e638e6bf6dac903396a67029d4d48e3cfa87d9 (diff)
downloadandroid_packages_apps_Trebuchet-9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d.tar.gz
android_packages_apps_Trebuchet-9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d.tar.bz2
android_packages_apps_Trebuchet-9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d.zip
Redo the launcher loading code and put the real app icons into rollo.
Diffstat (limited to 'src/com/android/launcher2/BubbleTextView.java')
-rw-r--r--src/com/android/launcher2/BubbleTextView.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java
index de375b696..eaaff1cbb 100644
--- a/src/com/android/launcher2/BubbleTextView.java
+++ b/src/com/android/launcher2/BubbleTextView.java
@@ -63,7 +63,6 @@ public class BubbleTextView extends TextView {
setFocusable(true);
mBackground = getBackground();
setBackgroundDrawable(null);
- mBackground.setCallback(this);
mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mPaint.setColor(getContext().getResources().getColor(R.color.bubble_dark_background));
@@ -131,4 +130,16 @@ public class BubbleTextView extends TextView {
super.draw(canvas);
}
+
+ @Override
+ protected void onAttachedToWindow() {
+ super.onAttachedToWindow();
+ mBackground.setCallback(this);
+ }
+
+ @Override
+ protected void onDetachedFromWindow() {
+ super.onDetachedFromWindow();
+ mBackground.setCallback(null);
+ }
}