diff --git a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java index dfcd170735..801c8c1960 100644 --- a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java @@ -495,15 +495,15 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU accountClicked(menuItem.getTitle().toString()); break; default: + if (menuItem.getItemId() >= MENU_ITEM_EXTERNAL_LINK && + menuItem.getItemId() <= MENU_ITEM_EXTERNAL_LINK + 100) { + // external link clicked + externalLinkClicked(menuItem); + } else { + Log_OC.i(TAG, "Unknown drawer menu item clicked: " + menuItem.getTitle()); + } break; } - - if (menuItem.getItemId() >= MENU_ITEM_EXTERNAL_LINK && menuItem.getItemId() <= MENU_ITEM_EXTERNAL_LINK + 100) { - // external link clicked - externalLinkClicked(menuItem); - } else { - Log_OC.i(TAG, "Unknown drawer menu item clicked: " + menuItem.getTitle()); - } } private void handleSearchEvents(SearchEvent searchEvent, int menuItemId) {