From 9c6a79518d6c4d7821208b98f7be5df4eace7032 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sat, 13 May 2017 19:40:47 +0800 Subject: [PATCH] fixed some recycler view crashes --- .../twidere/fragment/StatusFragment.kt | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/StatusFragment.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/StatusFragment.kt index ca0e31951..066b26086 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/StatusFragment.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/fragment/StatusFragment.kt @@ -1417,8 +1417,7 @@ class StatusFragment : BaseFragment(), LoaderCallbacks { - if (detachedStatusViewHolder != null) { - return detachedStatusViewHolder - } val view = inflater.inflate(R.layout.header_status, parent, false) view.setBackgroundColor(cardBackgroundColor) return DetailStatusViewHolder(this, view) @@ -1692,20 +1688,6 @@ class StatusFragment : BaseFragment(), LoaderCallbacks