Skip to content

Commit 436eddf

Browse files
committed
fix oc file list fragment on resume call
Signed-off-by: alperozturk96 <[email protected]>
1 parent f3a9379 commit 436eddf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,10 @@ public SearchEvent getSearchEvent() {
22312231
* @return the menu item ID to highlight in the navigation drawer
22322232
*/
22332233
public int getMenuItemId() {
2234+
// getMenuItemId will be called from onResume of FileDisplayActivity before checking menu item id
2235+
// search argument needs to be set if exists
2236+
setSearchArgs(getArguments());
2237+
22342238
if (getClass() == GalleryFragment.class) {
22352239
return R.id.nav_gallery;
22362240
} else if (getClass() == SharedListFragment.class || isSearchEventShared() || currentSearchType == SHARED_FILTER) {

0 commit comments

Comments
 (0)