animate the thumbnail appearance only if animations arent disabled in the system

This commit is contained in:
tibbi 2021-11-29 22:55:14 +01:00
parent 657021b67e
commit 06b6416926
2 changed files with 2 additions and 2 deletions

View File

@ -1196,7 +1196,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
directories_grid.adapter = this
setupScrollDirection()
if (config.viewTypeFolders == VIEW_TYPE_LIST) {
if (config.viewTypeFolders == VIEW_TYPE_LIST && areSystemAnimationsEnabled) {
directories_grid.scheduleLayoutAnimation()
}
}

View File

@ -420,7 +420,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
}
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
if (viewType == VIEW_TYPE_LIST) {
if (viewType == VIEW_TYPE_LIST && areSystemAnimationsEnabled) {
media_grid.scheduleLayoutAnimation()
}