Simplification

This commit is contained in:
M66B 2020-05-15 16:51:30 +02:00
parent d9852ebc23
commit 76252855e4
1 changed files with 1 additions and 3 deletions

View File

@ -133,9 +133,7 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot
views.setOnClickFillInIntent(R.id.llMessage, thread); views.setOnClickFillInIntent(R.id.llMessage, thread);
int colorBackground = int colorBackground =
(message.accountColor == null || !ActivityBilling.isPro(context) (message.accountColor == null || !pro ? colorSeparator : message.accountColor);
? colorSeparator : message.accountColor);
views.setInt(R.id.stripe, "setBackgroundColor", colorBackground); views.setInt(R.id.stripe, "setBackgroundColor", colorBackground);
views.setViewVisibility(R.id.stripe, account < 0 && color_stripe ? View.VISIBLE : View.GONE); views.setViewVisibility(R.id.stripe, account < 0 && color_stripe ? View.VISIBLE : View.GONE);