Skip to content

Commit 1bad1ac

Browse files
committed
fixes
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent a1b32f9 commit 1bad1ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ class FileDisplayActivity :
650650
}
651651
}
652652

653+
listOfFilesFragment?.isSearchFragment = true
653654
listOfFilesFragment?.setCurrentSearchType(searchEvent)
654655
}
655656
// endregion
@@ -1327,6 +1328,9 @@ class FileDisplayActivity :
13271328

13281329
super.onResume()
13291330

1331+
if (ocFileListFragment is SharedListFragment || ocFileListFragment?.isSearchFragment == true) {
1332+
ocFileListFragment?.setSearchArgs(ocFileListFragment?.arguments)
1333+
}
13301334
highlightNavigationViewItem(menuItemId)
13311335

13321336
if (SettingsActivity.isBackPressed) {
@@ -1357,7 +1361,7 @@ class FileDisplayActivity :
13571361
file = it
13581362
}
13591363

1360-
ocFileListFragment.setSearchArgs(ocFileListFragment.arguments)
1364+
13611365

13621366
// refresh list of files
13631367
if (searchView != null && !TextUtils.isEmpty(searchQuery)) {

0 commit comments

Comments
 (0)