mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
d9852ebc23
commit
76252855e4
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue