|
|
|
@ -16,12 +16,14 @@ import net.pokeranalytics.android.ui.adapter.RowRepresentableDataSource |
|
|
|
import net.pokeranalytics.android.ui.adapter.RowRepresentableDelegate |
|
|
|
import net.pokeranalytics.android.ui.adapter.RowRepresentableDelegate |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.bottomsheet.BottomSheetFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.bottomsheet.BottomSheetFragment |
|
|
|
|
|
|
|
import net.pokeranalytics.android.ui.helpers.DateTimePickerManager |
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterCategoryRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterCategoryRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterSubcategoryRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterSubcategoryRow |
|
|
|
import timber.log.Timber |
|
|
|
import timber.log.Timber |
|
|
|
|
|
|
|
import java.util.* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
open class FilterDetailsFragment : PokerAnalyticsFragment(), RowRepresentableDataSource, RowRepresentableDelegate { |
|
|
|
open class FilterDetailsFragment : PokerAnalyticsFragment(), RowRepresentableDataSource, RowRepresentableDelegate { |
|
|
|
@ -104,8 +106,14 @@ open class FilterDetailsFragment : PokerAnalyticsFragment(), RowRepresentableDat |
|
|
|
} |
|
|
|
} |
|
|
|
rowRepresentableAdapter.refreshRow(row) |
|
|
|
rowRepresentableAdapter.refreshRow(row) |
|
|
|
|
|
|
|
|
|
|
|
when(row) { |
|
|
|
Timber.d("Row: $row") |
|
|
|
FilterRow.FROM -> BottomSheetFragment.create(fragmentManager, row, this, null) |
|
|
|
when (row) { |
|
|
|
|
|
|
|
FilterRow.FROM -> DateTimePickerManager.create(requireContext(), row, this, Date()) |
|
|
|
|
|
|
|
FilterRow.TO -> DateTimePickerManager.create(requireContext(), row, this, Date()) |
|
|
|
|
|
|
|
FilterRow.PAST_DAYS -> { |
|
|
|
|
|
|
|
val data = row.editingDescriptors(mapOf("defaultValue" to "")) |
|
|
|
|
|
|
|
BottomSheetFragment.create(fragmentManager, row, this, data, null) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|