mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 18:28:59 +03:00
and the last one...
This commit is contained in:
parent
0d29d949c5
commit
06275e0f79
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue