LeOSium_webview/mulch/patches/0001-Vanadium/0067-remove-safety-check-me...

23 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2023-11-18 11:46:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Tue, 25 May 2021 16:43:39 -0400
Subject: [PATCH] remove safety check menu
---
.../src/org/chromium/chrome/browser/settings/MainSettings.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java b/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java
index 16b5cd3caf63b..69fdd58bebbbf 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/settings/MainSettings.java
@@ -223,6 +223,8 @@ public class MainSettings extends ChromeBaseSettingsFragment
templateUrlService.load();
}
+ getPreferenceScreen().removePreference(findPreference(PREF_SAFETY_CHECK));
+
new AdaptiveToolbarStatePredictor(null).recomputeUiState(uiState -> {
// We don't show the toolbar shortcut settings page if disabled from finch.
if (uiState.canShowUi) return;