Removes another warning

od
Laurent 6 years ago
parent 22df145fc5
commit d03f75bff1
  1. 4
      app/src/main/java/net/pokeranalytics/android/ui/fragment/SessionFragment.kt

@ -275,7 +275,7 @@ class SessionFragment : RealmFragment(), RowRepresentableDelegate {
} }
updateMenuUI() updateMenuUI()
updateAdapterUI(true) updateAdapterUI()
} }
/** /**
@ -301,7 +301,7 @@ class SessionFragment : RealmFragment(), RowRepresentableDelegate {
/** /**
* Update adapter UI * Update adapter UI
*/ */
private fun updateAdapterUI(scrollToTop: Boolean) { private fun updateAdapterUI() {
currentSession.adapterRows()?.let { currentSession.adapterRows()?.let {
val diffResult = DiffUtil.calculateDiff(RowRepresentableDiffCallback(it, oldRows)) val diffResult = DiffUtil.calculateDiff(RowRepresentableDiffCallback(it, oldRows))
sessionAdapter.updateRows(diffResult) sessionAdapter.updateRows(diffResult)

Loading…
Cancel
Save