File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
app/src/main/java/com/owncloud/android/ui/activity Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments