|
|
|
@ -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) |
|
|
|
|