and the last one...

This commit is contained in:
tobiasKaminsky 2017-04-19 14:54:36 +02:00
parent 0d29d949c5
commit 06275e0f79
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -436,12 +436,8 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
menuItem.setChecked(true); menuItem.setChecked(true);
mCheckedMenuItem = menuItem.getItemId(); mCheckedMenuItem = menuItem.getItemId();
Intent recentlyAddedIntent = new Intent(getBaseContext(), FileDisplayActivity.class); switchToSearchFragment(new SearchEvent("%",SearchOperation.SearchType.CONTENT_TYPE_SEARCH,
recentlyAddedIntent.putExtra(OCFileListFragment.SEARCH_EVENT, Parcels.wrap(new SearchEvent("%", SearchEvent.UnsetType.UNSET_BOTTOM_NAV_BAR), menuItem);
SearchOperation.SearchType.CONTENT_TYPE_SEARCH, SearchEvent.UnsetType.UNSET_BOTTOM_NAV_BAR)));
recentlyAddedIntent.putExtra(FileDisplayActivity.DRAWER_MENU_ID, menuItem.getItemId());
recentlyAddedIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(recentlyAddedIntent);
break; break;
case R.id.nav_recently_modified: case R.id.nav_recently_modified:
menuItem.setChecked(true); menuItem.setChecked(true);