|
|
|
|
@ -11,7 +11,6 @@ import io.realm.Sort |
|
|
|
|
import io.realm.kotlin.where |
|
|
|
|
import kotlinx.android.synthetic.main.fragment_history.* |
|
|
|
|
import kotlinx.coroutines.GlobalScope |
|
|
|
|
import kotlinx.coroutines.delay |
|
|
|
|
import kotlinx.coroutines.launch |
|
|
|
|
import net.pokeranalytics.android.R |
|
|
|
|
import net.pokeranalytics.android.model.interfaces.Savable |
|
|
|
|
@ -118,8 +117,6 @@ class HistoryFragment : PokerAnalyticsFragment(), RowRepresentableDataSource, Ro |
|
|
|
|
|
|
|
|
|
GlobalScope.launch { |
|
|
|
|
|
|
|
|
|
delay(100) |
|
|
|
|
|
|
|
|
|
val groupedByDay = false |
|
|
|
|
val calendar = Calendar.getInstance() |
|
|
|
|
val currentCalendar = Calendar.getInstance() |
|
|
|
|
@ -163,10 +160,10 @@ class HistoryFragment : PokerAnalyticsFragment(), RowRepresentableDataSource, Ro |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun viewTypeForPosition(position: Int): Int { |
|
|
|
|
if (rows[position].viewType == RowViewType.HEADER_SESSION.ordinal) { |
|
|
|
|
return RowViewType.HEADER_SESSION.ordinal |
|
|
|
|
return if (rows[position].viewType == RowViewType.HEADER_SESSION.ordinal) { |
|
|
|
|
RowViewType.HEADER_SESSION.ordinal |
|
|
|
|
} else { |
|
|
|
|
return RowViewType.ROW_SESSION.ordinal |
|
|
|
|
RowViewType.ROW_SESSION.ordinal |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|