|
|
|
|
@ -14,12 +14,12 @@ import net.pokeranalytics.android.ui.adapter.components.DynamicRowInterface |
|
|
|
|
|
|
|
|
|
enum class BottomSheetType { |
|
|
|
|
NONE, |
|
|
|
|
GAME, |
|
|
|
|
BLINDS, |
|
|
|
|
LOCATION, |
|
|
|
|
BANKROLL, |
|
|
|
|
TABLE_SIZE, |
|
|
|
|
DATE |
|
|
|
|
LIST, |
|
|
|
|
DOUBLE_LIST, |
|
|
|
|
DATE, |
|
|
|
|
GRID, |
|
|
|
|
EDIT_TEXT, |
|
|
|
|
DOUBLE_EDIT_TEXT, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface BottomSheetInterface { |
|
|
|
|
@ -41,12 +41,17 @@ open class BottomSheetFragment : BottomSheetDialogFragment(), BottomSheetInterfa |
|
|
|
|
private var data: Any? = null |
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
|
fun create( fragmentManager: FragmentManager?, row: DynamicRowInterface, valueDelegate: BottomSheetDelegate, data: Any?): BottomSheetFragment { |
|
|
|
|
fun create( |
|
|
|
|
fragmentManager: FragmentManager?, |
|
|
|
|
row: DynamicRowInterface, |
|
|
|
|
valueDelegate: BottomSheetDelegate, |
|
|
|
|
data: Any? |
|
|
|
|
): BottomSheetFragment { |
|
|
|
|
|
|
|
|
|
val bottomSheetFragment = when (row.bottomSheetType) { |
|
|
|
|
BottomSheetType.BLINDS -> BottomSheetBlindsFragment() |
|
|
|
|
BottomSheetType.DATE -> BottomSheetDateFragment() |
|
|
|
|
BottomSheetType.GAME -> BottomSheetGameFragment() |
|
|
|
|
BottomSheetType.LIST -> BottomSheetListFragment() |
|
|
|
|
BottomSheetType.DOUBLE_LIST -> BottomSheetDoubleListFragment() |
|
|
|
|
else -> BottomSheetFragment() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|