Do not show the fail icon for a group conversation

Test: Check an widget

Change-Id: Ie1ea35e0bd36891abf8b476b5409a99fa439a1b6
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
This commit is contained in:
Taesu Lee
2020-02-18 15:53:06 +09:00
parent 519ae7e902
commit a531636ae3
@@ -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);