summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2021-01-27 16:27:15 -0800
committerTony Wickham <twickham@google.com>2021-02-03 18:54:58 -0800
commitaaa42bd0e85f21c78d999c20adb819d77b6df731 (patch)
tree750c08be09184c45786921f8f2cae61e6181348b /src
parent5809a40f3ed091af74c5209a09a628fa2b5beb76 (diff)
Add recent tasks to Taskbar
- Also adds a divider between Hotseat and Recents - Dedupes Recents from Hotseat Test: Open some recent tasks, ensure they are deduped from Hotseat and also handle < 2 tasks. Bug: 171917176 Change-Id: Ia782c6ccbcda94cfd844aad04dc3d25a3f072c2b
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/BubbleTextView.java10
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) {