Skip to content

Commit

Permalink
Merge pull request #13 from javded/master
Browse files Browse the repository at this point in the history
Alternate rows color preferences
  • Loading branch information
mbarashkov authored Sep 29, 2021
2 parents 84f9f39 + dc17ff2 commit 3585f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ open class BlotterListAdapter @JvmOverloads constructor(
}

protected fun alternateColorIfNeeded(v: BlotterViewHolder, context: Context, cursor: Cursor) {
if (MyPreferences.isAccountAlternateColors(context) && cursor.position % 2 == 1) {
if (MyPreferences.isBlotterAlternateColors(context) && cursor.position % 2 == 1) {
v.layout.setBackgroundColor(context.resources.getColor(R.color.alternate_row))
} else {
v.layout.setBackgroundColor(context.resources.getColor(R.color.global_background))
Expand Down

0 comments on commit 3585f31

Please sign in to comment.