|
|
|
@ -17,9 +17,9 @@ import kotlinx.coroutines.Dispatchers |
|
|
|
import kotlinx.coroutines.GlobalScope |
|
|
|
import kotlinx.coroutines.GlobalScope |
|
|
|
import kotlinx.coroutines.launch |
|
|
|
import kotlinx.coroutines.launch |
|
|
|
import net.pokeranalytics.android.R |
|
|
|
import net.pokeranalytics.android.R |
|
|
|
import net.pokeranalytics.android.calculus.calcul.defaultStatEntries |
|
|
|
|
|
|
|
import net.pokeranalytics.android.calculus.Calculator |
|
|
|
import net.pokeranalytics.android.calculus.Calculator |
|
|
|
import net.pokeranalytics.android.calculus.Stat |
|
|
|
import net.pokeranalytics.android.calculus.Stat |
|
|
|
|
|
|
|
import net.pokeranalytics.android.calculus.calcul.defaultStatEntries |
|
|
|
import net.pokeranalytics.android.databinding.FragmentCalendarDetailsBinding |
|
|
|
import net.pokeranalytics.android.databinding.FragmentCalendarDetailsBinding |
|
|
|
import net.pokeranalytics.android.model.filter.Query |
|
|
|
import net.pokeranalytics.android.model.filter.Query |
|
|
|
import net.pokeranalytics.android.model.filter.QueryCondition |
|
|
|
import net.pokeranalytics.android.model.filter.QueryCondition |
|
|
|
@ -32,11 +32,10 @@ import net.pokeranalytics.android.ui.helpers.AppReviewManager |
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
import net.pokeranalytics.android.ui.view.rows.CustomizableRowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.rows.CustomizableRowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.rows.GraphRow |
|
|
|
|
|
|
|
import net.pokeranalytics.android.ui.view.rows.DualStatRow |
|
|
|
import net.pokeranalytics.android.ui.view.rows.DualStatRow |
|
|
|
|
|
|
|
import net.pokeranalytics.android.ui.view.rows.GraphRow |
|
|
|
import timber.log.Timber |
|
|
|
import timber.log.Timber |
|
|
|
import java.util.* |
|
|
|
import java.util.* |
|
|
|
import kotlin.collections.ArrayList |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CalendarDetailsFragment : BaseFragment(), StaticRowRepresentableDataSource, RowRepresentableDelegate { |
|
|
|
class CalendarDetailsFragment : BaseFragment(), StaticRowRepresentableDataSource, RowRepresentableDelegate { |
|
|
|
|
|
|
|
|
|
|
|
@ -215,7 +214,7 @@ class CalendarDetailsFragment : BaseFragment(), StaticRowRepresentableDataSource |
|
|
|
stat = Stat.STANDARD_DEVIATION |
|
|
|
stat = Stat.STANDARD_DEVIATION |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
rowRepresentables.add(DualStatRow(it.computedStat(Stat.WIN_RATIO), it.computedStat(Stat.MAXIMUM_NETRESULT))) |
|
|
|
rowRepresentables.add(DualStatRow(it.computedStat(Stat.WIN_RATIO), it.computedStat(Stat.MAXIMUM_NET_RESULT))) |
|
|
|
rowRepresentables.add(CustomizableRowRepresentable(RowViewType.HEADER_TITLE, resId = R.string.volume)) |
|
|
|
rowRepresentables.add(CustomizableRowRepresentable(RowViewType.HEADER_TITLE, resId = R.string.volume)) |
|
|
|
rowRepresentables.add(GraphRow(durationDataSet, report = report, stat = Stat.HOURLY_DURATION)) |
|
|
|
rowRepresentables.add(GraphRow(durationDataSet, report = report, stat = Stat.HOURLY_DURATION)) |
|
|
|
rowRepresentables.add(DualStatRow(it.computedStat(Stat.HOURLY_DURATION), it.computedStat(Stat.AVERAGE_HOURLY_DURATION))) |
|
|
|
rowRepresentables.add(DualStatRow(it.computedStat(Stat.HOURLY_DURATION), it.computedStat(Stat.AVERAGE_HOURLY_DURATION))) |
|
|
|
|