|
|
|
@ -27,7 +27,6 @@ import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentableDiffCallback |
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentableDiffCallback |
|
|
|
import net.pokeranalytics.android.ui.view.SmoothScrollLinearLayoutManager |
|
|
|
import net.pokeranalytics.android.ui.view.SmoothScrollLinearLayoutManager |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SessionRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SessionRow |
|
|
|
import timber.log.Timber |
|
|
|
|
|
|
|
import java.util.* |
|
|
|
import java.util.* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -75,7 +74,6 @@ class SessionFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, Bott |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
if (fromAction) { |
|
|
|
if (fromAction) { |
|
|
|
Toast.makeText(requireContext(), "Action for row: $row", Toast.LENGTH_SHORT).show() |
|
|
|
Toast.makeText(requireContext(), "Action for row: $row", Toast.LENGTH_SHORT).show() |
|
|
|
@ -148,8 +146,6 @@ class SessionFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, Bott |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private fun updateSessionUI() { |
|
|
|
private fun updateSessionUI() { |
|
|
|
|
|
|
|
|
|
|
|
Timber.d("updateSessionUI") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handler.removeCallbacksAndMessages(null) |
|
|
|
handler.removeCallbacksAndMessages(null) |
|
|
|
|
|
|
|
|
|
|
|
when (currentSession.getState()) { |
|
|
|
when (currentSession.getState()) { |
|
|
|
|