Skip to content

Commit 1cc7dc3

Browse files
committed
fixes
Signed-off-by: alperozturk96 <[email protected]>
1 parent 838170f commit 1cc7dc3

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ class FileDisplayActivity :
13281328

13291329
super.onResume()
13301330

1331-
if (ocFileListFragment is SharedListFragment || ocFileListFragment?.isSearchFragment == true) {
1331+
if (ocFileListFragment?.isSearchFragment == true) {
13321332
ocFileListFragment?.setSearchArgs(ocFileListFragment?.arguments)
13331333
}
13341334
highlightNavigationViewItem(menuItemId)

app/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,9 @@ private OCFileDepth getCurrentDirDepth() {
184184

185185
private SearchType getSearchType() {
186186
final OCFileListFragment fragment = getOCFileListFragment();
187-
188-
// if current navigation not matches, reset search event
189-
if (this instanceof DrawerActivity drawerActivity && !drawerActivity.isMenuItemIdBelongsToSearchType()) {
190-
if (fragment != null) {
191-
fragment.resetSearchAttributes();
192-
}
193-
194-
return SearchType.NO_SEARCH;
195-
}
196-
197187
if (fragment != null) {
198188
return fragment.getCurrentSearchType();
199189
}
200-
201190
return SearchType.NO_SEARCH;
202191
}
203192

0 commit comments

Comments
 (0)