|
|
|
@ -15,7 +15,6 @@ import net.pokeranalytics.android.ui.adapter.components.DynamicRowCallback |
|
|
|
import net.pokeranalytics.android.ui.adapter.components.DynamicRowInterface |
|
|
|
import net.pokeranalytics.android.ui.adapter.components.DynamicRowInterface |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetDelegate |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetDelegate |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetType |
|
|
|
|
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
|
|
|
|
|
|
|
|
class NewSessionFragment : PokerAnalyticsFragment(), DynamicRowCallback, BottomSheetDelegate { |
|
|
|
class NewSessionFragment : PokerAnalyticsFragment(), DynamicRowCallback, BottomSheetDelegate { |
|
|
|
@ -35,9 +34,11 @@ class NewSessionFragment : PokerAnalyticsFragment(), DynamicRowCallback, BottomS |
|
|
|
override fun onRowSelected(row: DynamicRowInterface) { |
|
|
|
override fun onRowSelected(row: DynamicRowInterface) { |
|
|
|
|
|
|
|
|
|
|
|
val data = when (row.bottomSheetType) { |
|
|
|
val data = when (row.bottomSheetType) { |
|
|
|
|
|
|
|
/* |
|
|
|
BottomSheetType.BLINDS -> newSession |
|
|
|
BottomSheetType.BLINDS -> newSession |
|
|
|
BottomSheetType.DATE -> newSession.timeFrame |
|
|
|
BottomSheetType.DATE -> newSession.timeFrame |
|
|
|
BottomSheetType.GAME -> newSession.game |
|
|
|
BottomSheetType.GAME -> newSession.game |
|
|
|
|
|
|
|
*/ |
|
|
|
else -> Any() |
|
|
|
else -> Any() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|