Skip to content

Commit

Permalink
feat(PublicShareFolderSort): Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Oct 1, 2024
1 parent a8c4f7a commit c3bd081
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ open class FileAdapter(
fun setFiles(newItemList: List<File>, isFileListResetNeeded: Boolean = false) {
fileList = RealmList(*newItemList.toTypedArray())
hideLoading()
// isFileListResetNeeded is used because when sorting file in PublicShareListFragment, the animation of the asynclist
// is bugged, so we just redraw the whole list. As it's only once it's not a problem
if (fileAsyncListDiffer == null || isFileListResetNeeded) {
notifyDataSetChanged()
} else {
Expand Down

0 comments on commit c3bd081

Please sign in to comment.