|
|
|
|
@ -6,6 +6,7 @@ import android.os.Bundle |
|
|
|
|
import android.view.LayoutInflater |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.ViewGroup |
|
|
|
|
import androidx.core.view.isVisible |
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager |
|
|
|
|
import com.google.android.material.tabs.TabLayout |
|
|
|
|
import io.realm.Realm |
|
|
|
|
@ -72,7 +73,7 @@ class CalendarDetailsFragment : PokerAnalyticsFragment(), StaticRowRepresentable |
|
|
|
|
is GraphRow -> { |
|
|
|
|
//TODO: Open graph details |
|
|
|
|
row.report.results.firstOrNull()?.group?.let { computableGroup -> |
|
|
|
|
StatisticDetailsActivity.newInstance(requireContext(), row.stat, computableGroup, row.report) |
|
|
|
|
StatisticDetailsActivity.newInstance(requireContext(), row.stat, computableGroup, row.report, false) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -146,6 +147,10 @@ class CalendarDetailsFragment : PokerAnalyticsFragment(), StaticRowRepresentable |
|
|
|
|
*/ |
|
|
|
|
private fun launchStatComputation() { |
|
|
|
|
|
|
|
|
|
progressBar.isVisible = true |
|
|
|
|
progressBar.animate().alpha(1f).start() |
|
|
|
|
recyclerView.animate().alpha(0f).start() |
|
|
|
|
|
|
|
|
|
computedResults?.let { computedResults -> |
|
|
|
|
|
|
|
|
|
GlobalScope.launch { |
|
|
|
|
@ -193,6 +198,10 @@ class CalendarDetailsFragment : PokerAnalyticsFragment(), StaticRowRepresentable |
|
|
|
|
|
|
|
|
|
launch(Dispatchers.Main) { |
|
|
|
|
statsAdapter.notifyDataSetChanged() |
|
|
|
|
progressBar.animate().cancel() |
|
|
|
|
progressBar.animate().alpha(0f).withEndAction { progressBar.isVisible = false }.start() |
|
|
|
|
recyclerView.animate().cancel() |
|
|
|
|
recyclerView.animate().alpha(1f).start() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|