diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 5007ffc7be..6f446ad910 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -359,6 +359,16 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } /** + * Directly set the icon and label. + */ + @UiThread + public void applyIconAndLabel(Drawable icon, CharSequence label) { + setIcon(icon); + setText(label); + setContentDescription(label); + } + + /** * Overrides the default long press timeout. */ public void setLongPressTimeoutFactor(float longPressTimeoutFactor) { |