Fix warning

hh
Laurent 6 years ago
parent ad6828e333
commit 5bfdee584f
  1. 5
      app/src/main/java/net/pokeranalytics/android/ui/fragment/FeedFragment.kt

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

Loading…
Cancel
Save