Skip to content

Commit a395e8b

Browse files
authored
Merge pull request #597 from czan/widget-color-fix
Fix widgets with negative values being green Fixes #518
2 parents 2eb5168 + 42ce9b7 commit a395e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/gnucash/android/ui/homescreen/WidgetConfigurationActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public static void updateWidget(final Context context, int appWidgetId, String a
175175

176176
views.setTextViewText(R.id.transactions_summary,
177177
accountBalance.formattedString(Locale.getDefault()));
178-
int color = account.getBalance().isNegative() ? R.color.debit_red : R.color.credit_green;
178+
int color = accountBalance.isNegative() ? R.color.debit_red : R.color.credit_green;
179179
views.setTextColor(R.id.transactions_summary, context.getResources().getColor(color));
180180

181181

0 commit comments

Comments
 (0)