From 4812e1bfe416568b3d6cea705d4d616ed0841120 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sun, 16 Jul 2017 14:09:46 +0800 Subject: [PATCH] possible fix to #883 --- .../mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt | 2 +- .../org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt index dc46fc2b1..66fcfcba8 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt @@ -176,7 +176,7 @@ class ParcelableActivitiesAdapter( filteredUserKeys = data.filteredUserIds } this.data = data - infoCache = if (data != null) arrayOfNulls(data.size) else null + this.infoCache = if (data != null) arrayOfNulls(data.size) else null gapLoadingIds.clear() updateItemCount() notifyDataSetChanged() diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt index 4df7f45fa..b2a92a1cf 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt @@ -190,6 +190,7 @@ abstract class ParcelableStatusesAdapter( changed = this.data != data } this.data = data + this.infoCache = if (data != null) arrayOfNulls(data.size) else null gapLoadingIds.clear() updateItemCount() notifyDataSetChanged()