summaryrefslogtreecommitdiff
path: root/java/com/android/newbubble
diff options
context:
space:
mode:
authoryueg <yueg@google.com>2018-01-31 14:01:57 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-31 14:38:46 -0800
commit41eb2f5a58c8a1d4caae7385ecc4374a9851c3b8 (patch)
treef128a65e64f71764cdd86adcbe001171fffcb99e /java/com/android/newbubble
parentc61a76fc39f1a05d673d8ba75b489749ac278f0d (diff)
Add arrow icon to bubble sound button when Bluetooth is connected.
It's an indicator that the button triggers another list. Bug: 67605985 Test: manual PiperOrigin-RevId: 184042869 Change-Id: I3fea526a322dcc3935af111ebd0916b7c5ffcb24
Diffstat (limited to 'java/com/android/newbubble')
-rw-r--r--java/com/android/newbubble/NewBubbleInfo.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/com/android/newbubble/NewBubbleInfo.java b/java/com/android/newbubble/NewBubbleInfo.java
index cc7ac7c6f..d9232a5a0 100644
--- a/java/com/android/newbubble/NewBubbleInfo.java
+++ b/java/com/android/newbubble/NewBubbleInfo.java
@@ -80,6 +80,9 @@ public abstract class NewBubbleInfo {
public abstract Drawable getIconDrawable();
+ @Nullable
+ public abstract Drawable getSecondaryIconDrawable();
+
@NonNull
public abstract CharSequence getName();
@@ -100,7 +103,8 @@ public abstract class NewBubbleInfo {
.setChecked(action.isChecked())
.setCheckable(action.isCheckable())
.setName(action.getName())
- .setIconDrawable(action.getIconDrawable());
+ .setIconDrawable(action.getIconDrawable())
+ .setSecondaryIconDrawable(action.getSecondaryIconDrawable());
}
/** Builder for {@link Action} */
@@ -109,6 +113,8 @@ public abstract class NewBubbleInfo {
public abstract Builder setIconDrawable(Drawable iconDrawable);
+ public abstract Builder setSecondaryIconDrawable(@Nullable Drawable secondaryIconDrawable);
+
public abstract Builder setName(@NonNull CharSequence name);
public abstract Builder setIntent(@NonNull PendingIntent intent);