Disable generic UA by default

This commit is contained in:
M66B
2022-01-28 22:22:14 +01:00
parent 1ab7ac0f98
commit 7fd18514f8
2 changed files with 2 additions and 2 deletions

View File

@@ -373,7 +373,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
static String getUserAgent(Context context, WebView webView) {
// https://developer.chrome.com/docs/multidevice/user-agent/#chrome-for-android
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean generic_ua = prefs.getBoolean("generic_ua", true);
boolean generic_ua = prefs.getBoolean("generic_ua", false);
if (generic_ua)
return getGenericUserAgent(context);