From 59d6b2df822ea1cd07581832287b7f945bf40c3b Mon Sep 17 00:00:00 2001 From: JeanGarf Date: Sat, 7 Mar 2020 11:48:12 +0100 Subject: [PATCH] #876 - Fix merge --- .../android/ui/transaction/TransactionDetailActivity.java | 4 ++++ .../gnucash/android/ui/transaction/TransactionsActivity.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/org/gnucash/android/ui/transaction/TransactionDetailActivity.java b/app/src/main/java/org/gnucash/android/ui/transaction/TransactionDetailActivity.java index eb22e5352..1ffbddd66 100644 --- a/app/src/main/java/org/gnucash/android/ui/transaction/TransactionDetailActivity.java +++ b/app/src/main/java/org/gnucash/android/ui/transaction/TransactionDetailActivity.java @@ -63,6 +63,10 @@ public SplitAmountViewHolder(View view, accountName.setText(accountsDbAdapter.getAccountFullName(accountUID)); + // Set color according to Account + AccountUtils.setAccountTextColor(accountName, + accountUID); + // quantity (positive or negative number) Money quantity = split.getFormattedQuantity(); diff --git a/app/src/main/java/org/gnucash/android/ui/transaction/TransactionsActivity.java b/app/src/main/java/org/gnucash/android/ui/transaction/TransactionsActivity.java index 1fc93931c..fb82915ad 100644 --- a/app/src/main/java/org/gnucash/android/ui/transaction/TransactionsActivity.java +++ b/app/src/main/java/org/gnucash/android/ui/transaction/TransactionsActivity.java @@ -18,6 +18,7 @@ package org.gnucash.android.ui.transaction; import android.content.Context; +import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.graphics.drawable.ColorDrawable; @@ -60,6 +61,7 @@ import org.gnucash.android.ui.common.Refreshable; import org.gnucash.android.ui.common.UxArgument; import org.gnucash.android.ui.util.AccountBalanceTask; +import org.gnucash.android.ui.util.widget.TransactionTypeSwitch; import org.gnucash.android.ui.util.widget.searchablespinner.SearchableSpinnerView; import org.gnucash.android.util.QualifiedAccountNameCursorAdapter; import org.joda.time.LocalDate;