|
|
|
|
@ -260,8 +260,8 @@ class FeedFragment : FilterableFragment(), RowRepresentableDelegate { |
|
|
|
|
messageToShow.actionResId?.let { |
|
|
|
|
messageBoxAction.text = requireContext().getString(it) |
|
|
|
|
messageToShow.action(requireContext())?.let { action -> |
|
|
|
|
messageBoxAction.setOnClickListener { |
|
|
|
|
action.invoke(it) |
|
|
|
|
messageBoxAction.setOnClickListener { view -> |
|
|
|
|
action.invoke(view) |
|
|
|
|
hideMessageBox(messageToShow) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -465,6 +465,7 @@ class FeedFragment : FilterableFragment(), RowRepresentableDelegate { |
|
|
|
|
* Create a new hand history |
|
|
|
|
*/ |
|
|
|
|
private fun createNewHandHistory() { |
|
|
|
|
// gets the first session of the adapter - the last created - to preconfigure the HH |
|
|
|
|
this.sessionAdapter.sessionForPosition(0)?.let { session -> |
|
|
|
|
HandHistoryActivity.newInstance(this, session, false) |
|
|
|
|
} ?: run { |
|
|
|
|
|