Skip to content

Commit 0c1367d

Browse files
Merge pull request #16159 from nextcloud/fix/empty-all-files
fix: empty all files
2 parents 447a7b7 + 77ecff2 commit 0c1367d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,10 @@ class FileDisplayActivity :
564564
ALL_FILES == action -> {
565565
Log_OC.d(this, "Switch to oc file fragment")
566566
menuItemId = R.id.nav_all_files
567-
leftFragment = OCFileListFragment()
568-
supportFragmentManager.executePendingTransactions()
567+
if (leftFragment !is OCFileListFragment) {
568+
leftFragment = OCFileListFragment()
569+
supportFragmentManager.executePendingTransactions()
570+
}
569571
browseToRoot()
570572
}
571573

0 commit comments

Comments
 (0)