feat: disable in-app browser google safe browsing

This commit is contained in:
xtaodada 2024-08-15 21:45:37 +08:00
parent 7cdde85071
commit f3b2ae5803
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 3 deletions

View File

@ -308,7 +308,7 @@ public class SharedConfig {
public static boolean nextMediaTap = true;
public static boolean recordViaSco = false;
public static boolean customTabs = true;
public static boolean inappBrowser = true;
public static boolean inappBrowser = false;
public static boolean adaptableColorInBrowser = true;
public static boolean directShare = true;
public static boolean inappCamera = true;
@ -651,7 +651,7 @@ public class SharedConfig {
nextMediaTap = preferences.getBoolean("next_media_on_tap", true);
recordViaSco = preferences.getBoolean("record_via_sco", false);
customTabs = preferences.getBoolean("custom_tabs", true);
inappBrowser = preferences.getBoolean("inapp_browser", true);
inappBrowser = preferences.getBoolean("inapp_browser", false);
adaptableColorInBrowser = preferences.getBoolean("adaptableBrowser", false);
directShare = preferences.getBoolean("direct_share", true);
shuffleMusic = preferences.getBoolean("shuffleMusic", false);

View File

@ -362,7 +362,7 @@ public abstract class BotWebViewContainer extends FrameLayout implements Notific
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
settings.setSafeBrowsingEnabled(true);
settings.setSafeBrowsingEnabled(false);
}
}