mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
check external link only in default switch
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
ab670780b0
commit
374f36c31a
1 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue