possible fix to #813?

This commit is contained in:
Mariotaku Lee 2017-05-02 18:01:23 +08:00
parent 11fd97f7b5
commit 648e31de54
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ abstract class ParcelableStatusesAdapter(
}
override fun getStatus(position: Int, raw: Boolean): ParcelableStatus {
return getStatusInternal(position, getItemCountIndex(position, raw), raw)
return getStatusInternal(position, getItemCountIndex(position, raw), raw, reuse = false)
}
override fun getStatusCount(raw: Boolean): Int {
@ -439,7 +439,7 @@ abstract class ParcelableStatusesAdapter(
}
private fun getStatusInternal(position: Int, countIndex: Int = getItemCountIndex(position),
raw: Boolean = false, reuse: Boolean = true): ParcelableStatus {
raw: Boolean = false, reuse: Boolean): ParcelableStatus {
when (countIndex) {
ITEM_INDEX_PINNED_STATUS -> {
return pinnedStatuses!![position - getItemStartPosition(ITEM_INDEX_PINNED_STATUS)]