Disable generic UA by default

pull/194/merge
M66B 3 years ago
parent 1ab7ac0f98
commit 7fd18514f8

@ -509,7 +509,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
swSecure.setChecked(prefs.getBoolean("secure", false));
tvGenericUserAgent.setText(WebViewEx.getUserAgent(getContext()));
swGenericUserAgent.setChecked(prefs.getBoolean("generic_ua", true));
swGenericUserAgent.setChecked(prefs.getBoolean("generic_ua", false));
swSafeBrowsing.setChecked(prefs.getBoolean("safe_browsing", false));
swLoadEmoji.setChecked(prefs.getBoolean("load_emoji", BuildConfig.PLAY_STORE_RELEASE));

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

Loading…
Cancel
Save