feature/top10
Laurent 7 years ago
parent c0c06a9972
commit a75b0aea83
  1. 2
      app/src/main/java/net/pokeranalytics/android/ui/fragment/GraphFragment.kt
  2. 3
      app/src/main/java/net/pokeranalytics/android/ui/view/LegendView.kt

@ -238,7 +238,7 @@ class GraphFragment : PokerAnalyticsFragment(), OnChartValueSelectedListener, Co
val formattedDate = it.entryTitle val formattedDate = it.entryTitle
val entryValue = it.formattedValue(this.stat, requireContext()) val entryValue = it.formattedValue(this.stat, requireContext())
val totalStatValue = this.stat.format(e.y.toDouble(), currency = null, context = requireContext()) val totalStatValue = this.stat.format(entry.y.toDouble(), currency = null, context = requireContext())
this.legendView.setItemData(this.stat, formattedDate, entryValue, totalStatValue) this.legendView.setItemData(this.stat, formattedDate, entryValue, totalStatValue)
} }

@ -57,7 +57,8 @@ class LegendView : FrameLayout {
this.stat2Name.isVisible = false this.stat2Name.isVisible = false
} }
this.counter.text = "$counter ${context.getString(R.string.sessions)}" val counterText = "$counter ${context.getString(R.string.sessions)}"
this.counter.text = counterText
this.counter.isVisible = stat.shouldShowNumberOfSessions this.counter.isVisible = stat.shouldShowNumberOfSessions
} }

Loading…
Cancel
Save