fix #486, respect animations disabled system-wide

This commit is contained in:
tibbi 2021-06-13 22:06:36 +02:00
parent 81f3723ed0
commit 515d0eb710
3 changed files with 8 additions and 3 deletions

View File

@ -58,7 +58,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:ac45c5e893'
implementation 'com.github.SimpleMobileTools:Simple-Commons:e56c724d04'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2'

View File

@ -131,7 +131,10 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
items_list.adapter = this
}
items_list.scheduleLayoutAnimation()
if (context.areSystemAnimationsEnabled) {
items_list.scheduleLayoutAnimation()
}
val dateFormat = context!!.config.dateFormat
val timeFormat = context!!.getTimeFormat()
items_fastscroller.setViews(items_list, items_swipe_refresh) {

View File

@ -59,7 +59,9 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
recents_list.adapter = this
}
recents_list.scheduleLayoutAnimation()
if (context.areSystemAnimationsEnabled) {
recents_list.scheduleLayoutAnimation()
}
}
override fun setupColors(textColor: Int, primaryColor: Int) {