1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-11 10:18:05 +09:00

Reverted changes related to enabling/disabling RecyclerView animations in Editor.

This commit is contained in:
ubu 2020-06-08 13:39:38 +02:00
parent 3c42b6fdca
commit d3da03d4a5

View file

@ -19,7 +19,6 @@ import androidx.core.view.updatePadding
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
import com.agileburo.anytype.BuildConfig
import com.agileburo.anytype.R
@ -300,7 +299,7 @@ open class PageFragment :
recycler.apply {
layoutManager = LinearLayoutManager(requireContext())
setHasFixedSize(true)
itemAnimator = null
//itemAnimator = null
adapter = pageAdapter
addOnScrollListener(titleVisibilityDetector)
}
@ -602,9 +601,7 @@ open class PageFragment :
state.multiSelect.apply {
if (isVisible) {
recycler.apply {
itemAnimator = DefaultItemAnimator()
}
//recycler.apply { itemAnimator = DefaultItemAnimator() }
hideSoftInput()
Timber.d("Hiding top menu")
topToolbar.invisible()
@ -614,9 +611,7 @@ open class PageFragment :
showSelectButton()
}
} else {
recycler.apply {
itemAnimator = null
}
//recycler.apply { itemAnimator = null }
bottomMenu.hideWithAnimation()
hideSelectButton()
}