Merge pull request #5839 from nextcloud/showAllFiles

show all files when clicking on show files
This commit is contained in:
Tobias Kaminsky 2020-04-14 14:52:29 +02:00 committed by GitHub
commit 0a2e59d63e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,7 +348,7 @@ public abstract class DrawerActivity extends ToolbarActivity
pendingRunnable = new Runnable() {
@Override
public void run() {
selectNavigationItem(menuItem);
onNavigationItemClicked(menuItem);
}
};
return true;
@ -394,8 +394,7 @@ public abstract class DrawerActivity extends ToolbarActivity
}
private void selectNavigationItem(final MenuItem menuItem) {
private void onNavigationItemClicked(final MenuItem menuItem) {
setDrawerMenuItemChecked(menuItem.getItemId());
if (menuItem.getGroupId() == R.id.drawer_menu_accounts) {
@ -414,6 +413,7 @@ public abstract class DrawerActivity extends ToolbarActivity
startActivity(intent);
} else {
((FileDisplayActivity) this).browseToRoot();
showFiles(false);
EventBus.getDefault().post(new ChangeMenuEvent());
}
} else {