Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ public NewsblurWebview(Context context, AttributeSet attrs) {
getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
getSettings().setDomStorageEnabled(true);
getSettings().setSupportZoom(true);
getSettings().setAllowFileAccess(true);
// Reading WebView is loaded with the https appassets virtual host
// (READING_BASE_URL = https://appassets.androidplatform.net/assets/)
// and serves all bundled resources through
// WebViewAssetLoader.shouldInterceptRequest. It never loads a file://
// URL, so setAllowFileAccess(true) is not load-bearing here.
getSettings().setAllowFileAccess(false);

// Remove default web search and share to accommodate the custom contextual menu
getSettings().setDisabledActionModeMenuItems(WebSettings.MENU_ITEM_WEB_SEARCH);
Expand Down