mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-04 04:17:37 +01:00
fix #486, respect animations disabled system-wide
This commit is contained in:
parent
81f3723ed0
commit
515d0eb710
@ -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'
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user