check external link only in default switch

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-01-21 11:36:13 +01:00 committed by Andy Scherzinger
parent ab670780b0
commit 374f36c31a
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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) {