From 7d0254c552e3e82420287b69d5a26897c8b1f840 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Mon, 1 Jun 2020 18:16:38 -0700 Subject: [PATCH] Use shortcut label for overflow conversation title Fixes: 157070668 Test: manual - works for single and group chats (w/ & w/o chat names) Change-Id: If354d396d104eae27869ce8c0463b1e4e4df497d --- .../systemui/bubbles/BubbleOverflowActivity.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java index bea4ba776bebc..8fd20517782f8 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java @@ -22,6 +22,7 @@ import static com.android.systemui.bubbles.BubbleDebugConfig.TAG_WITH_CLASS_NAME import android.app.Activity; import android.content.Context; +import android.content.pm.ShortcutInfo; import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.TypedArray; @@ -204,6 +205,8 @@ public class BubbleOverflowActivity extends Activity { } class BubbleOverflowAdapter extends RecyclerView.Adapter { + private static final String TAG = TAG_WITH_CLASS_NAME ? "BubbleOverflowAdapter" : TAG_BUBBLES; + private Context mContext; private Consumer mPromoteBubbleFromOverflow; private List mBubbles; @@ -282,11 +285,16 @@ class BubbleOverflowAdapter extends RecyclerView.Adapter