|
|
|
@ -47,14 +47,13 @@ class DataListActivity : BaseActivity() { |
|
|
|
), FilterActivityRequestCode.SELECT_FILTER.ordinal) |
|
|
|
), FilterActivityRequestCode.SELECT_FILTER.ordinal) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun newDialogInstance(fragment: Fragment, dataType: LiveData, selection: Boolean, itemIds: Array<String>? = null, showAddButton: Boolean = true) { |
|
|
|
fun newInstance(fragment: Fragment, dataType: LiveData, selection: Boolean, itemIds: Array<String>? = null, showAddButton: Boolean = true) { |
|
|
|
val context = fragment.requireContext() |
|
|
|
val context = fragment.requireContext() |
|
|
|
fragment.startActivityForResult( |
|
|
|
fragment.startActivityForResult( |
|
|
|
getIntent( |
|
|
|
getIntent( |
|
|
|
context, |
|
|
|
context, |
|
|
|
dataType.ordinal, |
|
|
|
dataType.ordinal, |
|
|
|
showAddButton = showAddButton, |
|
|
|
showAddButton = showAddButton, |
|
|
|
dialog = true, |
|
|
|
|
|
|
|
selection = selection, |
|
|
|
selection = selection, |
|
|
|
itemIds = itemIds |
|
|
|
itemIds = itemIds |
|
|
|
), RequestCode.PLAYER_SELECTION.ordinal) |
|
|
|
), RequestCode.PLAYER_SELECTION.ordinal) |
|
|
|
|