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:
parent
3c42b6fdca
commit
d3da03d4a5
1 changed files with 3 additions and 8 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue