Skip to content

Commit

Permalink
Fixes codinguser#871 Display inherited color from ancestor's account …
Browse files Browse the repository at this point in the history
…on the Strip View
  • Loading branch information
JeanGarf committed Feb 27, 2020
1 parent 85704b4 commit 57adc93
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
import android.content.Intent;
import android.content.res.Configuration;
import android.database.Cursor;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
Expand Down Expand Up @@ -499,11 +497,11 @@ public void onBindViewHolderCursor(final AccountViewHolder holder, final Cursor

// add a summary of transactions to the account view

// Make sure the balance task is truly multithread
// Make sure the balance task is truly multithread
new AccountBalanceTask(holder.accountBalance).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, accountUID);

String accountColor = cursor.getString(cursor.getColumnIndexOrThrow(DatabaseSchema.AccountEntry.COLUMN_COLOR_CODE));
int colorCode = accountColor == null ? Color.TRANSPARENT : Color.parseColor(accountColor);
// #871 Display inherited color from ancestor's account on the Strip View
int colorCode = AccountsDbAdapter.getActiveAccountColorResource(accountUID);
holder.colorStripView.setBackgroundColor(colorCode);

boolean isPlaceholderAccount = mAccountsDbAdapter.isPlaceholderAccount(accountUID);
Expand Down

0 comments on commit 57adc93

Please sign in to comment.