Skip to content

Commit

Permalink
fix: Avoid loading activities in v3 root
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Sep 26, 2023
1 parent 7a447f3 commit 3c6bc51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ open class FileListFragment : MultiSelectFragment(MATOMO_CATEGORY), SwipeRefresh
private fun refreshActivities() {
val isUploadInProgressNavigation = findNavController().currentDestination?.id == R.id.uploadInProgressFragment

if (folderId == OTHER_ROOT_ID || isUploadInProgressNavigation || !fileAdapter.isComplete) return
if (folderId in arrayOf(OTHER_ROOT_ID, ROOT_ID) || isUploadInProgressNavigation || !fileAdapter.isComplete) return

if (isLoadingActivities) {
retryLoadingActivities = true
Expand Down

0 comments on commit 3c6bc51

Please sign in to comment.