mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Disable Safe browsing by default
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
android:value="true" />
|
||||
<meta-data
|
||||
android:name="android.webkit.WebView.EnableSafeBrowsing"
|
||||
android:value="true" />
|
||||
android:value="false" />
|
||||
<meta-data
|
||||
android:name="android.allow_multiple_resumed_activities"
|
||||
android:value="true" />
|
||||
|
||||
@@ -267,7 +267,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
||||
|
||||
swDisplayHidden.setChecked(prefs.getBoolean("display_hidden", false));
|
||||
swSecure.setChecked(prefs.getBoolean("secure", false));
|
||||
swSafeBrowsing.setChecked(prefs.getBoolean("safe_browsing", true));
|
||||
swSafeBrowsing.setChecked(prefs.getBoolean("safe_browsing", false));
|
||||
}
|
||||
|
||||
public static class FragmentDialogPin extends FragmentDialogBase {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean safe_browsing = prefs.getBoolean("safe_browsing", true);
|
||||
boolean safe_browsing = prefs.getBoolean("safe_browsing", false);
|
||||
settings.setSafeBrowsingEnabled(safe_browsing);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,6 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:checked="true"
|
||||
android:text="@string/title_advanced_safe_browsing"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
Reference in New Issue
Block a user