dev_raz_wip
Aurelien Hubert 7 years ago
parent ab27323e14
commit f3ec817a31
  1. 11
      app/src/main/java/net/pokeranalytics/android/ui/fragment/SettingsFragment.kt

@ -11,7 +11,7 @@ import net.pokeranalytics.android.R
import net.pokeranalytics.android.ui.adapter.components.* import net.pokeranalytics.android.ui.adapter.components.*
import net.pokeranalytics.android.util.PokerAnalyticsFragment import net.pokeranalytics.android.util.PokerAnalyticsFragment
class SettingsFragment : PokerAnalyticsFragment(), DynamicRowDelegate { class SettingsFragment : PokerAnalyticsFragment(), DynamicRowDelegate, DynamicRowCallback {
companion object { companion object {
@ -44,6 +44,10 @@ class SettingsFragment : PokerAnalyticsFragment(), DynamicRowDelegate {
return rows return rows
} }
override fun onRowSelected(row: DynamicRowInterface) {
val bottomSheetFragment = openBottomSheet(row)
}
/** /**
* Init data * Init data
*/ */
@ -51,11 +55,8 @@ class SettingsFragment : PokerAnalyticsFragment(), DynamicRowDelegate {
val viewManager = LinearLayoutManager(requireContext()) val viewManager = LinearLayoutManager(requireContext())
settingsAdapter = DynamicListAdapter( settingsAdapter = DynamicListAdapter(
this this, this
) )
settingsAdapter.callback = {
val bottomSheetFragment = openBottomSheet()
}
recyclerView.apply { recyclerView.apply {
setHasFixedSize(true) setHasFixedSize(true)

Loading…
Cancel
Save