diff --git a/app/build.gradle b/app/build.gradle index bfc371a5..5e5dcf06 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt index ef9327fc..e935585a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt @@ -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) { diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/RecentsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/RecentsFragment.kt index a0c0835b..03983da8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/RecentsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/RecentsFragment.kt @@ -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) {