From a531636ae38955d7aa866b17dd49babdef377ceb Mon Sep 17 00:00:00 2001 From: Taesu Lee Date: Fri, 14 Feb 2020 18:59:06 +0900 Subject: [PATCH] Do not show the fail icon for a group conversation Test: Check an widget Change-Id: Ie1ea35e0bd36891abf8b476b5409a99fa439a1b6 Signed-off-by: Taesu Lee --- .../messaging/widget/WidgetConversationListService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/android/messaging/widget/WidgetConversationListService.java b/src/com/android/messaging/widget/WidgetConversationListService.java index 264b98c..b67bd79 100644 --- a/src/com/android/messaging/widget/WidgetConversationListService.java +++ b/src/com/android/messaging/widget/WidgetConversationListService.java @@ -159,10 +159,9 @@ public class WidgetConversationListService extends RemoteViewsService { // Error // Only show the fail icon if it is not a group conversation. // And also require that we be the default sms app. - final boolean showError = conv.getIsFailedStatus() && - isDefaultSmsApp; - final boolean showDraft = conv.getShowDraft() && - isDefaultSmsApp; + final boolean showError = + conv.getIsFailedStatus() && !conv.getIsGroup() && isDefaultSmsApp; + final boolean showDraft = conv.getShowDraft() && isDefaultSmsApp; remoteViews.setViewVisibility(R.id.conversation_failed_status_icon, showError && includeAvatar ? View.VISIBLE : View.GONE);