mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-27 08:23:24 +00:00
Disable Safe browsing by default
This commit is contained in:
parent
73e8335f9e
commit
c98418ad56
4 changed files with 3 additions and 4 deletions
|
@ -55,7 +55,7 @@
|
||||||
android:value="true" />
|
android:value="true" />
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.webkit.WebView.EnableSafeBrowsing"
|
android:name="android.webkit.WebView.EnableSafeBrowsing"
|
||||||
android:value="true" />
|
android:value="false" />
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.allow_multiple_resumed_activities"
|
android:name="android.allow_multiple_resumed_activities"
|
||||||
android:value="true" />
|
android:value="true" />
|
||||||
|
|
|
@ -267,7 +267,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
||||||
|
|
||||||
swDisplayHidden.setChecked(prefs.getBoolean("display_hidden", false));
|
swDisplayHidden.setChecked(prefs.getBoolean("display_hidden", false));
|
||||||
swSecure.setChecked(prefs.getBoolean("secure", 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 {
|
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) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
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);
|
settings.setSafeBrowsingEnabled(safe_browsing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,7 +245,6 @@
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="12dp"
|
||||||
android:checked="true"
|
|
||||||
android:text="@string/title_advanced_safe_browsing"
|
android:text="@string/title_advanced_safe_browsing"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
|
Loading…
Reference in a new issue