mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
fix #486, respect animations disabled system-wide
This commit is contained in:
@@ -58,7 +58,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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:RootTools:df729dcb13'
|
||||||
implementation 'com.github.Stericson:RootShell:1.6'
|
implementation 'com.github.Stericson:RootShell:1.6'
|
||||||
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
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.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
items_list.scheduleLayoutAnimation()
|
if (context.areSystemAnimationsEnabled) {
|
||||||
|
items_list.scheduleLayoutAnimation()
|
||||||
|
}
|
||||||
|
|
||||||
val dateFormat = context!!.config.dateFormat
|
val dateFormat = context!!.config.dateFormat
|
||||||
val timeFormat = context!!.getTimeFormat()
|
val timeFormat = context!!.getTimeFormat()
|
||||||
items_fastscroller.setViews(items_list, items_swipe_refresh) {
|
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.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
recents_list.scheduleLayoutAnimation()
|
if (context.areSystemAnimationsEnabled) {
|
||||||
|
recents_list.scheduleLayoutAnimation()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setupColors(textColor: Int, primaryColor: Int) {
|
override fun setupColors(textColor: Int, primaryColor: Int) {
|
||||||
|
Reference in New Issue
Block a user