Skip to content

Commit

Permalink
Do not show builtin extensions (addons) in the hamburger menu
Browse files Browse the repository at this point in the history
Wolvic uses builtin extensions (not user installable) for several matters,
from better YouTube experiences to workarounding issues in media playing.
Those builtin addons are not user installable and they can't be disabled
or uninstalled either. Actually the point is to make them completely
transparent to the users. That's why we should not show them in the
hamburger menu.
  • Loading branch information
svillar committed Jan 7, 2025
1 parent 1bc0ec5 commit 4fa8233
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ private void updateItems() {
return;
}

// Do not show builtin extensions in the hamburger menu. As they are inside the APK, their URLs
// always start with "resource://android".
if (extension.getUrl().startsWith("resource://android")) {
return;
}

final WebExtensionState tabExtensionState = tab.getExtensionState().get(extension.getId());
if (extension.getBrowserAction() != null) {
addOrUpdateAddonMenuItem(
Expand Down

0 comments on commit 4fa8233

Please sign in to comment.