Disable attribute registration

This commit is contained in:
M66B
2023-11-29 21:53:17 +01:00
parent 26133dedf5
commit 86806cf42e
5 changed files with 15 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
if (WebViewEx.isFeatureSupported(context, WebViewFeature.SAFE_BROWSING_ENABLE))
WebSettingsCompat.setSafeBrowsingEnabled(settings, safe_browsing);
if (WebViewEx.isFeatureSupported(context, WebViewFeature.ATTRIBUTION_REGISTRATION_BEHAVIOR))
WebSettingsCompat.setAttributionRegistrationBehavior(settings, WebSettingsCompat.ATTRIBUTION_BEHAVIOR_DISABLED);
}
void init(int height, int maxHeight, float size, Pair<Integer, Integer> position, boolean force_light, IWebView intf) {